I have been struggling a bit with locating elements in HTML - using selenium/python.
I have the following which identifies a button;
<button class="btn__primary--large from__button--floating" data-litms-control-urn="login-submit" type="submit" aria-label="Sign in">Sign in</button>
I have tried to click using;
driver.find_element_by_class_name('btn__primary--large from__button--floating').click()
However, I get the error message:
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".btn__primary--large from__button--floating"}
Any general help in finding elements would be appreciated!