Skip to content
Advertisement

Python Selenium Element Not Found

When element not found should print : not found, but i got error :

JavaScript

Here is my script and the element ‘search’ doesn’t exist

JavaScript

Didn’t work because we can’t do len to element ( we can do it only to elements with an s )

Advertisement

Answer

Try the below code and let me know if it works.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement