I'm trying to check if a word is or is not on a webpage by using Selenium on Python. The problem is the word is dynamic: it will only appear after I do some action (in my case, selecting an option on a dropdown list).
I've tried to use
"text" is in driver.page_source"
But it doesn't work: it will not detect my dynamic text (even though it detects other static texts).
I have no idea why it doesn't work.
Aucun commentaire:
Enregistrer un commentaire