Method: Selenium::Client::GeneratedDriver#focus
- Defined in:
- lib/selenium/client/legacy_driver.rb
#focus(locator) ⇒ Object
Move the focus to the specified element; for example, if the element is an input field, move the cursor to that field.
‘locator’ is an element locator
211 212 213 |
# File 'lib/selenium/client/legacy_driver.rb', line 211 def focus(locator) remote_control_command("focus", [locator,]) end |