Method: Selenium::Client::GeneratedDriver#add_selection

Defined in:
lib/selenium/client/legacy_driver.rb

#add_selection(locator, optionLocator) ⇒ Object

Add a selection to the set of selected options in a multi-select element using an option locator.

‘locator’ is an element locator identifying a multi-select box ‘optionLocator’ is an option locator (a label by default)

See Also:

  • for details of option locators

526
527
528
# File 'lib/selenium/client/legacy_driver.rb', line 526

def add_selection(locator,optionLocator)
    remote_control_command("addSelection", [locator,optionLocator,])
end