Method: Selenium::WebDriver::Element#dom_attribute
- Defined in:
- lib/selenium/webdriver/common/element.rb
permalink #dom_attribute(name) ⇒ String?
Gets the value of a declared HTML attribute of this element.
As opposed to the #attribute method, this method only returns attributes declared in the element’s HTML markup.
If the attribute is not set, nil is returned.
145 146 147 |
# File 'lib/selenium/webdriver/common/element.rb', line 145 def dom_attribute(name) bridge.element_dom_attribute @id, name end |