I'm writing a program to automate some actions on a website using Python and Selenium and I need to click a button with this code:
<button class="button login" data-popup="login">Change User</button>
Using this
log_but2 = "//button[@class='button login']"
driver.find_element_by_xpath(log_but2).click()
I've tried many combinations of Xpath but neither of them can locate the button, in addition I don't get any error, simply the program continue like it has clicked on it and get another error. Someone can help me please?