Skip to content

Add customization options to the CDP flash() method, which paints a dot on an element #3267

@mdmintz

Description

@mdmintz

Add customization options to the CDP flash() method, which paints a dot on an element


It currently paints a red dot on an element for half a second without pausing the rest of the script during the action.

Let's keep that for identifying CDP Mode clicks, but let's change things when calling cdp.flash() directly:

sb.cdp.flash(selector, duration=1, color="44CC88", pause=0)
flash(
    selector,  # The CSS Selector to flash
    duration=1,  # (seconds) flash duration
    color="44CC88",  # RGB hex flash color
    pause=0,  # (seconds) If 0, the next action starts during flash
)

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