0

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();

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

0

The correct XPath should be

//*[@id="chkDisclaimer2"]

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.