Method: WDA::Element#location

Defined in:
lib/wda_lib/element.rb

#locationStruct

Get element size

Returns:

  • :x, :y


159
160
161
162
# File 'lib/wda_lib/element.rb', line 159

def location
  r = rect
  Point.new(r['x'], r['y'])
end