Method: Selenium::Client::GeneratedDriver#type

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

#type(locator, value) ⇒ Object

Sets the value of an input field, as though you typed it in.

Can also be used to set the value of combo boxes, check boxes, etc. In these cases, value should be the value of the option selected, not the visible text.

‘locator’ is an element locator ‘value’ is the value to type


418
419
420
# File 'lib/selenium/client/legacy_driver.rb', line 418

def type(locator,value)
    remote_control_command("type", [locator,value,])
end