I'm grabbing a web page using Selenium, but I need to wait for a certain value to load. I don't know what the value will be, only what element it will be present in.
It seems that using the expected condition text_to_be_present_in_element_value
or text_to_be_present_in_element
is the most likely way forward, but I'm having difficulty finding any actual documentation on how to use these and I don't know if they come before or after the page Get:
webdriver.get(url)
Linked answers to this both rely on knowing what the expected text value will be. In the first one, it explicitly shows the expected text hardcoded into the WebDriverWait
call. Furthermore, neither of the linked answers even remotely touch upon the final part of my question:
[whether] they come before or after the page Get