Skip to content

Add advanced UC Mode PyAutoGUI clicking methods #2910

Closed
@mdmintz

Description

@mdmintz

Add advanced UC Mode PyAutoGUI clicking methods

driver.uc_gui_click_x_y(x, y, timeframe=0.25)  # PyAutoGUI click screen

driver.uc_gui_click_cf(frame="iframe", retry=False, blind=False)  # (*)

👤 driver.uc_gui_click_x_y(x, y, timeframe=0.25) uses PyAutoGUI to click the screen at the coordinates. The mouse movement will take the duration of the timeframe.

👤 driver.uc_gui_click_cf(frame="iframe", retry=False, blind=False) has three args. (All optional). The first one, frame, lets you specify the iframe in case the CAPTCHA is not located in the first iframe on the page. The second one, retry, lets you retry the click after reloading the page if the first one didn't work (and a CAPTCHA is still present after the page reload). The third arg, blind, will retry after a page reload (if the first click failed) by clicking at the last known coordinates of the CAPTCHA checkbox without confirming first with Selenium that a CAPTCHA is still on the page.

Metadata

Metadata

Assignees

Labels

UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeenhancementMaking things better

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions