Skip to content

Be able to call sb.cdp.METHOD_NAME(args) with just sb.METHOD_NAME(args) #4351

@mdmintz

Description

@mdmintz

Be able to call sb.cdp.METHOD_NAME(args) with just sb.METHOD_NAME(args)

This should simplify lots of scripts, as these usages are common:

  • sb.cdp.flash(selector) - (Highlights an element with a dot via CDP)
  • sb.cdp.get_endpoint_url() - (Used by Stealthy Playwright Mode)

Those would become:

  • sb.flash(selector)
  • sb.get_endpoint_url()
  • etc.

These changes are expected in 4.49.2.

Lots of examples will be updated to use the simplified form.
(If you run one of the updated scripts without using that new version of SeleniumBase, then you may experience errors.)

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions