Skip to content

Add methods for clicking with an (x,y)-offset in CDP Mode #4055

@mdmintz

Description

@mdmintz

Add method for clicking with an (x,y)-offset in CDP Mode

Here's the method that will be added:

sb.cdp.gui_click_with_offset(selector, x, y, timeframe=0.25, center=False)

Description:

Click an element at an {X,Y}-offset location.
{0,0} is the top-left corner of the element.
If center==True, {0,0} becomes the center of the element.
The timeframe is the time spent moving the mouse.

I'll also add the following method for doing the same thing without PyAutoGUI:

sb.cdp.click_with_offset(selector, x, y, center=False)

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