Learn R Programming

selenium (version 0.1.4)

actions_scroll: Scroll the page

Description

Scroll actions to be passed into actions_stream(). Scroll the page in a given direction.

Usage

actions_scroll(x, y, delta_x, delta_y, duration = NULL, origin = "viewport")

Value

A selenium_action object.

Arguments

x

The x coordinate from which the scroll action originates from.

y

The y coordinate from which the scroll action originates from.

delta_x

The number of pixels to scroll in the x direction.

delta_y

The number of pixels to scroll in the y direction.

duration

The duration of the scroll, in seconds.

origin

The point from which x and y are measured. Can be a WebElement object, in which case x and y are measured from the center of the element. Otherwise, origin must be "viewport".

Examples

Run this code
actions_stream(
  actions_scroll(x = 1, y = 1, delta_x = 1, delta_y = 1, duration = 0.5)
)

Run the code above in your browser using DataLab