Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

selenium refresh till the element appears python

while True:
    if any(["Puffy" in h1.text.replace('uFEFF', "") for h1 in driver.find_elements_by_class_name("name-link")]):
        break
    else:
        driver.refresh
driver.find_element_by_xpath("//*[contains(., 'Puffy')]").click()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #selenium #refresh #element #appears #python
ADD COMMENT
Topic
Name
5+1 =