Nexial Automation

Test Automation Platform for everyone!

X

web » selectAllOptions(locator)

Description

This command will select all <OPTION> elements from a <SELECT> element (a.k.a. list or combo box) matched by the specified locator. If the locator does not resolve to a valid <SELECT> element or no <OPTION> elements found under such <SELECT> element, then this will result in a FAIL result. If the resolved <SELECT> does not support multi-select, then this command will be considered as FAIL as well.

Parameters

  • locator - the locator of the <SELECT> element (e.g list box or combo box)

Example

Script:

Before command execution             After command execution
                  

See Also