Description |
Causes the steps following this action to execute if the specified window is in the specified state. If not, execution follows the next Else or End If action, whichever comes first. Used to set up conditional steps to be executed if a specified window is opened, closed, or focused. |
Declaration |
<AMIF ACTION="text" WINDOWTITLE="text" WINDOWCLASS="text" WINDOWHANDLE="number" ALLOWHIDDEN="yes/no" WINDOWHANDLEVARIABLE="text [variablename]" WINDOWCLASSVARIABLE="text [variablename]" WINDOWTITLEVARIABLE="text [variablename]" RESULTDATASET="text" CHILDWINDOW="yes/no" {Also accepts all standard Window Dissection parameters}> </AMIF> |
Example |
<AMIF ACTION="focus" WINDOWTITLE="Google
- Windows Internet Explorer" WINDOWTITLEVARIABLE="VariableName"
RESULTDATASET="DatasetName"> |
General Tab Parameters |
If: Specifies the type of check to be performed.
Text, Optional, Default: (exist) Window Title Must Be: Specifies the title of the window to look for. The value is not case sensitive. This parameter supports wildcard characters (* and ?). For example "*Internet Explorer*" would include all windows containing Internet Explorer. Text, Required Window Class Must Be: Specifies the class of the window to look for. The value is not case sensitive. This parameter supports wildcard characters (* and ?). For example "*Explore*" would include all window classes containing Explore. Text, Required Window Handle Must Be: Specifies the handle of the window to look for. If set to 0 or omitted, this parameter is ignored. Number, Optional, Default: 0 Window is a Child Window: When enabled, specifies that the window to look for is a child window. This option is useful for Multi-Document Interface (MDI) applications, which contain a series of windows contained within one parent window. Yes/No, Optional, Default: NO |
Contents Tab |
The Contents tab contains standard window dissection parameters used to describe controls or text inside a window. These parameters are the same on every action that specifies a window and are documented under Window Dissection Parameters. |
Advanced Tab |
Include Hidden Windows: When enabled, specifies that hidden (non-visible) windows should be included in the window search. By default, hidden windows are considered unavailable. Yes/No, Optional, Default: NO Populate Variable with Window Title: Specifies the name of an already existing variable that should receive the title of the window that caused the steps to be executed. Text [variablename], Optional, Default: (blank) Populate Variable with Window Class: Specifies the name of an already existing variable that should receive the class of the window that caused the steps to be executed. Text [variablename], Optional, Default: (blank) Populate Variable with Window Handle: Specifies the name of an already existing variable that should receive the handle of the window that caused the steps to be executed. Text [variablename], Optional, Default: (blank) Create and Populate Dataset: Specifies the name of a dataset to be created and populated with data from the window that caused the steps to be executed. In addition to the standard dataset fields, the dataset will contain the following:
Text, Optional, Default: (blank) |