Use .findElements() - the plural version - and then test for the size of the returned list. If it is >0 the element is present, else it is not present.On Thursday, August 25, 2022 at 3:01:38 AM UTC-7 rick...@gmail.com wrote:This is the case, when I use selenium in python, I need to detect whether an element of the current web page exists, so I hope that selenium can do this function
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b7744ed9-6b47-4374-81ac-c9695c122fbdn%40googlegroups.com.