-
|
Hello Sir, i needed to build a mouse simulator engine because my site checks for mouse movements im planning to move mouse after and before clicks sometimes but here is the deal; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
There's sb.cdp.gui_press_key(key)
sb.cdp.gui_press_keys(keys)
sb.cdp.gui_write(text)
sb.cdp.gui_click_x_y(x, y, timeframe=0.25)
sb.cdp.gui_click_element(selector, timeframe=0.25)
sb.cdp.gui_click_with_offset(selector, x, y, timeframe=0.25, center=False)
sb.cdp.gui_click_captcha()
sb.cdp.gui_drag_drop_points(x1, y1, x2, y2, timeframe=0.35)
sb.cdp.gui_drag_and_drop(drag_selector, drop_selector, timeframe=0.35)
sb.cdp.gui_click_and_hold(selector, timeframe=0.35)
sb.cdp.gui_hover_x_y(x, y)
sb.cdp.gui_hover_element(selector)
sb.cdp.gui_hover_and_click(hover_selector, click_selector)From Stealthy Playwright Mode, you could also try Playwright methods if they have something for that. |
Beta Was this translation helpful? Give feedback.
There's
PyAutoGUI, which can control the mouse and the keyboard. (https://github.com/asweigart/pyautogui)There are several built-in methods that use that in CDP Mode: