web » saveSelectedText(var,locator)
Description
This command will get the selected text in a web select
element identified via the specified locator
and
store to user defined variable specified via var
.
Note: This command will store the array of selected text from the multi-select
list box.
Parameters
- var - this parameter is to store the value into variable.
- locator - this parameter is locator(xpath) of the element.
Example
Sample HTML:
Data file:
Output:
Data file:
Output: