Method: Selenium::Client::GeneratedDriver#is_checked
- Defined in:
- lib/selenium/client/legacy_driver.rb
#is_checked(locator) ⇒ Object
Gets whether a toggle-button (checkbox/radio) is checked. Fails if the specified element doesn’t exist or isn’t a toggle-button.
‘locator’ is an element locator pointing to a checkbox or radio button
972 973 974 |
# File 'lib/selenium/client/legacy_driver.rb', line 972 def is_checked(locator) return boolean_command("isChecked", [locator,]) end |