|
Prerequisites Editing a browser action. |
|
|
Adding a Validation to a Browser Action requires the following steps: In the Browser Action Editor, click on “Validations” in the left-hand pane of the Editor. |
![]() |
|
Click the “+” button either in the workspace or in the toolbar. |
![]() |
|
A new validation will appear in the workspace. |
![]() |
|
Choose a command from the command drop-down menu to describe the validation. In this example, we will add a validation to verify that an element is present on the page. |
![]() |
|
Some validation commands have parameters. The “verifyElementPresent” command has a Locator parameter. The parameters will appear beneath the command option when the command is selected. |
![]() |
|
Type in a value for the Locator, such as the id of the element, or use the Locator Tool to select an element in the web page. |
![]() |
|
All validations have a “Failure Action” option. If the failure action is set to “Record in Results Only”, the validation outcome will be recorded in the result, and the Test Composition will continue whether the validation passes or fails. If the failure action is set to “Halt the Composition”, the Test Composition will stop if the validation fails. |
![]() |