actions_stream: Create a set of actions to be performed

View source: R/actions.R

actions_streamR Documentation

Create a set of actions to be performed

Description

actions_stream() creates a set of actions to be performed by SeleniumSession$perform_actions(). Actions are a low level way to interact with a page.

Usage

actions_stream(...)

Arguments

...

selenium_action objects: the actions to perform.

Value

A selenium_actions_stream object, ready to be passed into SeleniumSession$perform_actions().

See Also

  • Pause actions: actions_pause().

  • Press actions: actions_press() and actions_release().

  • Mouse actions: actions_mousedown(), actions_mouseup() and actions_mousemove().

  • Scroll actions: actions_scroll().

Examples

actions_stream(
  actions_press(keys$enter),
  actions_pause(0.5),
  actions_release(keys$enter),
  actions_scroll(x = 1, y = 1, delta_x = 1, delta_y = 1, duration = 0.5),
  actions_mousemove(x = 1, y = 1, duration = 1, origin = "pointer")
)


selenium documentation built on Sept. 30, 2024, 9:22 a.m.