Skip to content

Trouble Clearing and Typing into Input Field using send_keys and type #3747

Answered by mdmintz
boysugi20 asked this question in Q&A
Discussion options

You must be logged in to vote

The Keys library from selenium.webdriver.common.keys is for Selenium commands only.

However, you activated CDP Mode, which means you can only use the CDP API because Selenium was removed when the WebDriver was disconnected from the browser.

To use Selenium commands again after activating CDP Mode, you need to call sb.connect(). This reconnects WebDriver to the browser (but it also makes your bot detectable because Selenium is detectable).

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