i have a while loop, it's working all fine, i just want to make a small modification on the line Marks = driver.find_element_by_xpath("HERE")
i want to make it like this: if Marks
is not showing then quit loop
while len(driver.find_elements_by_xpath("xxxxx']")) != 1:
try:
wait.until(EC.visibility_of_element_located((By.XPATH, "xxxxx']")))
List = driver.find_element_by_xpath("yyyyyyy")
List.click()
print('done1')
time.sleep(2)
Marks = driver.find_element_by_xpath("HERE")
edit here
time.sleep(2)
Marks.click()
time.sleep(5)
print('done3')
driver.get("qqqqqqq")
driver.find_element_by_xpath('qqqqqqq').click()
wait.until(EC.visibility_of_element_located((By.XPATH, "qqqqqqq")))
except:
pass