123456789_123456789_123456789_123456789_123456789_

Class: Selenium::WebDriver::WheelActions::ScrollOrigin

Relationships & Source Files
Inherits: Object
Defined in: rb/lib/selenium/webdriver/common/interactions/scroll_origin.rb

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(origin, x_offset, y_offset) ⇒ ScrollOrigin

This method is for internal use only.

Use a static method to access

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/interactions/scroll_origin.rb', line 40

def initialize(origin, x_offset, y_offset)
  @origin = origin
  @x_offset = x_offset
  @y_offset = y_offset
end

Class Method Details

.element(element, x_offset = 0, y_offset = 0)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/interactions/scroll_origin.rb', line 25

def element(element, x_offset = 0, y_offset = 0)
  new(element, x_offset, y_offset)
end

.viewport(x_offset = 0, y_offset = 0)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/interactions/scroll_origin.rb', line 29

def viewport(x_offset = 0, y_offset = 0)
  new(:viewport, x_offset, y_offset)
end

Instance Attribute Details

#origin (readonly)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/interactions/scroll_origin.rb', line 34

attr_reader :origin, :x_offset, :y_offset

#x_offset (readonly)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/interactions/scroll_origin.rb', line 34

attr_reader :origin, :x_offset, :y_offset

#y_offset (readonly)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/interactions/scroll_origin.rb', line 34

attr_reader :origin, :x_offset, :y_offset