Class: Async::WebDriver::Element::Rectangle

Inherits:
Struct
  • Object
show all
Defined in:
lib/async/webdriver/element.rb

Overview

A struct representing the size of an element.

Instance Attribute Summary collapse

Instance Attribute Details

#heightObject

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



220
221
222
# File 'lib/async/webdriver/element.rb', line 220

def height
  @height
end

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



220
221
222
# File 'lib/async/webdriver/element.rb', line 220

def width
  @width
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



220
221
222
# File 'lib/async/webdriver/element.rb', line 220

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



220
221
222
# File 'lib/async/webdriver/element.rb', line 220

def y
  @y
end