selenium refresh till the element appears python

Solutions on MaxInterview for selenium refresh till the element appears python by the best coders in the world

showing results for - "selenium refresh till the element appears python"
Edie
04 Mar 2017
1while True:
2    if any(["Puffy" in h1.text.replace('\uFEFF', "") for h1 in driver.find_elements_by_class_name("name-link")]):
3        break
4    else:
5        driver.refresh
6driver.find_element_by_xpath("//*[contains(., 'Puffy')]").click()
7