Have searched through some of the previous questions and have not been able to rectify - I'm a complete newbie to this, so please forgive the ignorance... Trying to select the third 'Radio' button on the page using the following:
from selenium import webdriver from selenium.webdriver.support.ui import Select from selenium.webdriver.common.keys import Keys import smtplib import time date = time.strftime("%d %b %Y" + ", " + "%H:%M%p") print (time.strftime("%d %b %Y" + ", " + "%H:%M%p")) driver=webdriver.Chrome() driver.maximize_window() driver.get("http://www.water.nsw.gov.au/water-licensing/registers") driver.implicitly_wait(10) driver.find_element_by_xpath('// [@id="wizard_tabs"]/div/div[1]/div/ul/li[3]/input').click()
The result is:
"Message: no such element: Unable to locate element: {"method":"xpath","selector":"//[@id="wizard_tabs"]/div/div[1]/div/ul/li[3]/input"}"
Have tried waiting for longer (500), but it doesn't make a difference. When I 'inspect' the page that has opened, the xpath is still the same. I know there's a simple answer and I'm hoping you internet legends can help!