Why would selenium not find the element using xpath?
<input class="btn btn-success" name="submit" id="loginButton" accesskey="l" value="Login" tabindex="6" type="submit">
Using:
driver.find_element_by_xpath("//input[@class='btn btn-success']").click()
I get:
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //input[@class='btn btn-success']
Tried css selector as well
time.sleep