I'm trying to click the table button but I'm having trouble.

Here is the HTML


And the Xpath


I tried the following didn't work.

tarihsel. FindElementByXPath("/html/body/div[1]/div[1]/main/div/div/div[3]/div[1]/div/span/button[2]").Click

  • What's not working? What error message are you getting? Have you tried other xpaths or other element locators (CSS locator, ID, class, etc)?
    – Lee Jensen
    Nov 17, 2022 at 17:54

1 Answer 1


You can try using the Click method on the WebElement object returned by the FindElementByXPath method, like this:


Make sure that you have correctly referenced the Selenium library and imported the necessary modules.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.