Version

xamDialogWindow - Recordable Methods

Topic Overview

Purpose

This topic provides reference information about the recordable user methods for testing the xamDialogWindow™ control.

In this topic

This topic contains the following sections:

xamDialogWindow Test Object Recordable Methods

Recordable methods summary chart

The following table briefly explains the recordable methods for testing the control. Detailed information about the methods is provided in the text blocks following the table.

Method Description

Moves the xamDialogWindow.

Resizes the xamDialogWindow.

Maximizes the xamDialogWindow.

Minimizes the xamDialogWindow.

Restores the xamDialogWindow to its previous state..

Closes the xamDialogWindow.

Move

Description

The Move method moves the xamDialogWindow to the specified location. It is used for recording and replaying the move action performed by the user.

Details

When replaying the method, the X parameter value is assigned to the xamDialogWindow control’s Left property; the Y parameter value - to the Top property.

Parameters

The following table explains the method’s parameters along with some sample code.

Method Parameter Description
  • X

  • Y

The X and Y parameters specify the new position of the xamDialogWindow. They are of type Double.

Example

Moving the xamDialogWindow to position X – 150, Y - 300 :

WpfWindow("DWMainWindow").XamDialogWindow("xamDialogWindow1").Move 150, 300

Default setting

No default settings.

Possible exceptions

The following table lists the possible exceptions for the method and the reason that is likely to be causing them.

Exception name Exception description Possible reasons

The specified action ["Move"] is not valid when :

"IsMoveable =

An exception is thrown when trying to replay the move action.

The xamDialogWindow control’s IsMoveable property is set to False (the moving is disabled).

Resize

Description

The Resize method is used for recording and replaying the resizing action performed by the user on the xamDialogWindow control.

Details

When replaying the method, the Width parameter value is assigned to the xamDialogWindow control’s Width property; the Height parameter value - to the Height property.

Parameters

The following table explains the method’s parameters along with some sample code.

Method Parameter Description
  • Width

  • Height

The Width and Height parameters specify the new size of the xamDialogWindow. They are of type Double.

Example

Resizing the xamDialogWindow to new width 300 and new height 200:

WpfWindow("DWMainWindow").XamDialogWindow("xamDialogWindow1").Resize 300, 200

Default setting

No default settings.

Possible exceptions

The following table lists the possible exceptions for the method and the reason that is likely to be causing them.

Exception name Exception description Possible reasons

The specified action ["Resize"] is not valid when :

"IsResizable =

An exception is thrown when trying to replay the resizing action.

The xamDialogWindow control’s IsResizable property is set to False (the resizing is disabled).

Maximize

Description

The Maximize method is used for recording and replaying the maximizing action performed by the user on the xamDialogWindow control.

Details

No additional details.

Parameters

No parameters are used with this method.

Example

Maximizing the xamDialogWindow:

WpfWindow("DWMainWindow").XamDialogWindow("xamDialogWindow1").Maximize

Default setting

No default settings.

Possible exceptions

The following table lists the possible exceptions for the method and the reason that is likely to be causing them.

Exception name Exception description Possible reasons

Cannot perform the specified action ["Maximize"].

An exception is thrown when trying to replay the maximizing action.

The xamDialogWindow control’s MaximizeButtonVisibility property is set to Collapsed or to Hidden .

Minimize

Description

The Minimize method is used for recording and replaying the minimizing action performed by the user on the xamDialogWindow control.

Details

No additional details.

Parameters

No parameters are used with this method.

Example

Minimizing the xamDialogWindow:

WpfWindow("DWMainWindow").XamDialogWindow("xamDialogWindow1").Minimize

Default setting

No default settings.

Possible exceptions

The following table lists the possible exceptions for the method and the reason that is likely to be causing them.

Exception name Exception description Possible reasons

Cannot perform the specified action ["Minimize"].

An exception is thrown when trying to replay the minimizing action.

The xamDialogWindow control’s MinimizeButtonVisibility property is set to Collapsed or to Hidden .

Restore

Description

The Restore method is used for recording and replaying the restoring the xamDialogWindow to a normal state after being maximized or minimized.

Details

No additional details.

Parameters

No parameters are used with this method.

Example

Restoring the xamDialogWindow to its normal size after being maximized:

WpfWindow("DWMainWindow").XamDialogWindow("xamDialogWindow1").Maximize

WpfWindow("DWMainWindow").XamDialogWindow("xamDialogWindow1").Restore

Default setting

No default settings.

Possible exceptions

The following table lists the possible exceptions for the method and the reason that is likely to be causing them.

Exception name Exception description Possible reasons

Cannot perform the specified action ["Restore"].

An exception is thrown when trying to replay the restoring action.

The xamDialogWindow state is already set to Normal .

Close

Description

This method is used for recording and replaying the closing of the xamDialogWindow.

Details

No additional details.

Parameters

No parameters are used with this method.

Example

Closing of the xamDialogWindow:

WpfWindow("DWMainWindow").XamDialogWindow("xamDialogWindow1").Close

Default setting

No default settings.

Possible exceptions

The following table lists the possible exceptions for the method and the reason that is likely to be causing them.

Exception name Exception description Possible reasons

Cannot perform the specified action ["Close"].

An exception is thrown when trying to replay the closing action.

The xamDialogWindow control’s CloseButtonVisibility property is set to Collapsed or to Hidden .

Related Content

Topics

The following table lists other topics you may find useful.

Topic Purpose

This topic provides information about the user actions of the xamDialogWindow™ control which you can test and the elements you can inspect.

This topic provides reference information about the inspectable test object properties of the xamDialogWindow™ control.

This topic provides reference information about the proxy class that supports the testing of the xamDialogWindow™ control in Micro Focus Unified Functional Testing software.