class Appium::Common::Selenium::WebDriver::Element
Implement useful features for element.
def location_rel
-
(OpenStruct)
- the relative x, y in a struct. ex: { x: 0.50, y: 0.20 }
def location_rel xy = self.location w = $driver.window_size OpenStruct.new( x: xy.x.to_f / w.width.to_f, y: xy.y.to_f / w.height.to_f ) end
def name
Returns the name attribute
def name self.attribute :name end
def tag_name
Returns the type attribute
def tag_name self.attribute :type end
def value
Returns the value attribute
def value self.attribute :value end