selenium.webdriver.common.actions.pointer_input#

Classes

PointerInput(kind, name)

class PointerInput(kind, name)[source]#

Bases: InputDevice

DEFAULT_MOVE_DURATION = 250#
create_pointer_move(duration=250, x=0, y=0, origin=None, **kwargs)[source]#
Parameters:
  • x (float)

  • y (float)

  • origin (WebElement | str | None)

create_pointer_down(**kwargs)[source]#
create_pointer_up(button)[source]#
create_pointer_cancel()[source]#
create_pause(pause_duration=0)[source]#
Parameters:

pause_duration (int | float)

Return type:

None

encode()[source]#
add_action(action)#
Parameters:

action (Any)

Return type:

None

clear_actions()#
Return type:

None