def element_is_present(driver):
try:
driver.find_element(By.ID, "dynamic-element")
return True
except:
return False
wait = WebDriverWait(driver, 10)
wait.until(element_is_present)
element = driver.find_element(By.ID, "dynamic-element")
原创文章,作者:IT_admin,如若转载,请注明出处:https://docs.ihr360.com/biz_and_flow/biz_flow/29510