Home > Net >  Cant click this button via xpath
Cant click this button via xpath

Time:10-15

enter image description here

I cant click this button neither class or full xpath my cde:

#checkout page

driver.get("https://www.theathletesfoot.gr/pages/checkout/default.aspx?lang=el")

time.sleep(5)

driver.find_element_("/html/body/div[1]/div[3]/div[2]/div/div/section/form/aside/div[1]/div/div[1]/div/div[1]/div/label").click();

CodePudding user response:

It appears you copied the XPath of the label, instead copy the XPath of the input right above the selected span in your screenshot and replace the XPath in the code.

CodePudding user response:

The correct XPath should be

//*[@id="chkDisclaimer2"]
  • Related