Answer the question
In order to leave comments, you need to log in
How to make a loop to check for the presence of text in an element (JavaScript, Selenium Python)?
Hello!
I have a question like this:
Selenium Python method finds an element: price = driver.find_by_css_selector('.price')
Checks if there is text:
if price.text is None:
driver.execute_script(here_is_the_script)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question