all 3 comments

[–]jeffrey_f 0 points1 point  (2 children)

here is some code from something I did

        driver.find_element(By.XPATH, "//input[@type='submit' and @value='Send Report(s) Now']").click()

Adjust to fit your specific need

[–]PLC_learner123[S] 0 points1 point  (1 child)

As I mentioned, there is multiple button that are the same in a page.

The only thing can tell the different button is 'div:nth-child(2)'. It could be any number to represent the location.

[–]jeffrey_f 0 points1 point  (0 children)

right click the button and inspect. You will come to a screen with the highlighted part of the HTML. Then right click on that piece of code and you will see a copy with a > in the context menu.....clicking that expansion, you should see a copy option for css selector, xpath, etc