Hi I am using selenium to automate test on web pages. I am using selenium and python and would like to have answers in this framework only. I run looping script to check if text is still found or not, if not then close the browser.I have tried my script but only working when text has link on it
while True:
try:
element = WebDriverWait(driver, 5).until(
EC.presence_of_element_located((By.PARTIAL_LINK_TEXT, "My Text"))
)
except:
break
driver.close()
driver.quit()
that script is working when text has link, The problem is my text was pure text without any link. i cannot use css selector because the text changing after certain minutes, so i need to locate text not xpath or other. Hope someone can help. thank you