Python Selenium: wait until an element is no longer stale?

后端 未结 4 1801
故里飘歌
故里飘歌 2021-01-18 12:19

I have a situation in which I want to wait until an element is no longer STALE i.e. until an elements gets connected to the DOM. Following wait options do not work somehow:<

4条回答
  •  星月不相逢
    2021-01-18 12:49

    WebDriverWait(browser, waitTime).until(EC.presence_of_element_located(
                    (By.XPATH or By.id or w/e you want, " xpath or id name")))
    

提交回复
热议问题