Method: Selenium::Client::GeneratedDriver#get_attribute
- Defined in:
- lib/selenium/client/legacy_driver.rb
permalink #get_attribute(attributeLocator) ⇒ Object
Gets the value of an element attribute. The value of the attribute may differ across browsers (this is the case for the “style” attribute, for example).
‘attributeLocator’ is an element locator followed by an @ sign and then the name of the attribute, e.g. “foo@bar”
1071 1072 1073 |
# File 'lib/selenium/client/legacy_driver.rb', line 1071 def get_attribute(attributeLocator) return string_command("getAttribute", [attributeLocator,]) end |