CDP-Mode input in field not possible? #3522
|
Hello - i try to make an input in a field in cdp-mode using the following code - But i get this error when i run it: When i have a look at the website this xpath is working without problems: Why is the element not found when i run i cdp-mode? |
Answered by
mdmintz
Feb 14, 2025
Replies: 2 comments
|
CDP Mode expects CSS Selectors. If given an XPath selector, it will try to convert that into a CSS Selector, but that may not always be possible because not all XPath Selectors can be represented accurately as CSS Selectors. Check to make sure you have valid CSS Selectors from the Devtools console when writing your scripts. |
0 replies
Answer selected by
mdmintz
|
Thanks again - for your fast help an answer. Not it worked! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CDP Mode expects CSS Selectors. If given an XPath selector, it will try to convert that into a CSS Selector, but that may not always be possible because not all XPath Selectors can be represented accurately as CSS Selectors. Check to make sure you have valid CSS Selectors from the Devtools console when writing your scripts.