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? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
-
Thanks again - for your fast help an answer. Not it worked! |
Beta Was this translation helpful? Give feedback.
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.