I am trying to click the button labled "Pickup" at the following link :
My code is below but does nothing until it fails with the error
element not interactable
pickupurl = 'https://firehouse.alohaorderonline.com/StartOrder.aspx?SelectMenuType=Retail&SelectMenu=1000560&SelectSite=1291'
driver = webdriver.Chrome('d:\\chromedriver\\chromedriver.exe')
driver.implicitly_wait(80)
driver.get(pickupurl)
button = driver.find_elements_by_xpath('//*[@id="ctl00_ctl00_PickupButton"]')
button.click()
The code appears to locate an element as when I print 'button' I get an element object.
I've tried using driver.execute_script to execute the onclick= attribute but this does nothing as well.
Any help is appreciated.
onClickof the JS would have done... but the main issue I think is, you are usingfind_elements_by_xpathyou should usefind_element_by_xpathwithout the "S"...