module Selenium::WebDriver::WheelActions
def scroll_by(delta_x, delta_y, device: nil)
-
(Selenium::WebDriver::WheelActions)
- A self reference.
Parameters:
-
delta_y
(Integer
) -- Distance along Y axis to scroll using the wheel. A negative value scrolls up. -
delta_x
(Integer
) -- Distance along X axis to scroll using the wheel. A negative value scrolls left.
Other tags:
- Example: Scroll viewport by a specified amount -
def scroll_by(delta_x, delta_y, device: nil) scroll(delta_x: delta_x, delta_y: delta_y, device: device) end