module SeleniumRecord::Axiable
Xpath axes helper methods for extending Selenium::WebDriver::Element
Public Instance Methods
parent(tag_name = '*')
click to toggle source
# File lib/selenium_record/axiable.rb, line 10 def parent(tag_name = '*') find_element xpath: "./parent::#{tag_name}" end
preceding_sibling(tag_name = '*')
click to toggle source
@param element [Selenium::WebDriver::Element] @return [Selenium::WebDriver::Element] The preceding-sibling axis element
# File lib/selenium_record/axiable.rb, line 6 def preceding_sibling(tag_name = '*') find_element xpath: "./preceding-sibling::#{tag_name}" end