Selenium IDE 3 has a wide range of commands and arguments
Commands
Command | Description | Arguments |
---|---|---|
add selection | Add a selection to the set of options in a multi-select element | locator |
answer on next prompt | Affects the next alert prompt. This command will send the specified answer string to it. If the alert is already present, then use “webdriver answer on visible prompt” instead | answer |
assert | Checks that a variable is an expected value. The variable’s value will be converted to a string for comparison. The test will stop if the assert fails | variable name expected value |
assert alert | Confirms that an alert has been rendered with the provided text. The test will stop if the assert fails. | alert text |
assert checked | Confirms that the target element has been checked. The test will stop if the assert fails. | locator |
assert confirmation | Confirms that a confirmation has been rendered. The test will stop if the assert fails. | |
assert editable | Confirms that the target element is editable. The test will stop if the assert fails. | |
assert element present | Confirms that the target element is present somewhere on the page. The test will stop if the assert fails. | locator |
assert element not present | Confirms that the target element is not present anywhere on the page. The test will stop if the assert fails. | locator |
assert not checked | Confirms that the target element has not been checked. The test will stop if the assert fails. | locator |
assert not editable | Confirm that the target element is not editable. The test will stop if the assert fails. | locator |
assert not selected value | Confirm that the value attribute of the selected option in a dropdown element does not contain the provided value. The test will stop if the assert fails. | select locator text |
Arguments
Argument | Name | Description |
alert text | text to check | |
answer | answer | The answer to give in response to the prompt pop-up. |