selenium can't locate the element, Time Out Exception. name="karam"
This works.
WebDriverWait(browser,10).until(
EC.presence_of_element_located((By.XPATH,'//*[@title="karam"]'))
)
This won't work.
WebDriverWait(browser,10).until(
EC.presence_of_element_located((By.XPATH,'//*[@title=str(name)]'))
)
nor this.
WebDriverWait(browser,10).until(
EC.presence_of_element_located((By.XPATH,'//*[@title="{}".format(name)))
)
Try:
name="karam"
WebDriverWait(browser,10).until(EC.presence_of_element_located((By.XPATH,'//*[@title="{0}"]'.format(name)))
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments