-
How To make a specific and customized mouse and keyboard emulation in my tests ? like move and click ...scrolling...duration of moving ...random mouse emulation ...etc |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Mouse Actions come from There's another section for Keyboard Actions: The complete Actions API: For anything not covered above, there's a separate repo called |
Beta Was this translation helpful? Give feedback.
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.)