Skip to content

Mouse And Keyboard Emulation #2749

Answered by mdmintz
Magic4k asked this question in Q&A
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

Comment options

You must be logged in to vote
0 replies
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
2 participants