Skip to content

Mouse And Keyboard Emulation #2749

Answered by mdmintz
Magic4k asked this question in Q&A
May 4, 2024 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

Mouse Actions come from ActionChains, which is part of raw Selenium:
https://www.selenium.dev/documentation/webdriver/actions_api/mouse/
With SeleniumBase, you can use any raw Selenium method. (sb.driver)

There's another section for Keyboard Actions:
https://www.selenium.dev/documentation/webdriver/actions_api/keyboard/

The complete Actions API:
https://www.selenium.dev/documentation/webdriver/actions_api/
That includes a Mouse Wheel API:
https://www.selenium.dev/documentation/webdriver/actions_api/wheel/

For anything not covered above, there's a separate repo called pyautogui:
https://github.com/asweigart/pyautogui
(GUI automation used to programmatically control the mouse & keyboard.)

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mdmintz
Comment options

@bogdanblazhkevych
Comment options

@mdmintz
Comment options

@bogdanblazhkevych
Comment options

@mdmintz
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants