Skip to content
Discussion options

You must be logged in to vote

Hello @nilsinhojrx,

When CDP Mode is activated, SeleniumBase methods automatically redirect to sb.cdp as long as you're not using a WebDriver-specific method.

Eg. sb.click(selector) redirects to sb.cdp.click(selector) ,
sb.type(selector, text) redirects to sb.cdp.type(selector, text) ,
but sb.execute_cdp_cmd(script) is a WebDriver-only method because it uses sb.driver.execute_cdp_cmd(script), so that one won't have stealth.

Most SeleniumBase methods have a CDP Mode counterpart.
Here's the list of CDP Mode methods: help_docs/cdp_mode_methods.md

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants