I am trying to select a radio check box on a page after it loads. I have tried 3 different ways. Two work and one does not, but I don't understand why. The one that does not work is the one I would like to use.
The below code works with no issues.
wait=WebDriverWait(driver, 30)
el = wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="stops-1"]')))
el.click()
The below code works with no issues.
wait=WebDriverWait(driver, 30)
time.sleep(15)
driver.find_element_by_xpath('//*[@id="stops-1"]').click()
The below code gives the following error. "in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: "
wait=WebDriverWait(driver, 30)
el = wait.until(EC.element_to_be_clickable((By.XPATH, '//*[@id="stops-1"]')))
el.click()
The page loads in about 10 - 15 seconds and the radio is present and I assume clickable because the other methods worked but this one does not.
Any help would be appreciated below is the link to the sight I am trying to work with