Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98784

In HTML using the selenium framework, how can I check if text is present on the page without hitting exception [closed]

$
0
0

I have code, where I find some text:

findmenu = self.driver.find_element_by_xpath(("//span[contains(text(),'Localidad')]"))

To verify the presence of an element on the page.

In some cases, the search took about 10 seconds and then the program told me the text was not found by throwing an exception.


Viewing all articles
Browse latest Browse all 98784

Trending Articles