Hi I am new at using selenium and I am automating a certain process for my work. I have successfully been able to fill in forms and click on several buttons but when verifying my MFA, the button to verify doesn't work.
HTML for button:
<button class = "btn blue trustdevice trustbtn" onclick="updateTrustDevice(true)">
<span class ="loadwithbtn" style="display: none;"></span>
<span class "waittext">Trust</span>
</button>
My code:
browser.find_element_by_class_name("btn blue trustdevice trustbtn").click()
I receive this error selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".btn blue trustdevice trustbtn"}
I also tried
elements = browser.find_element_by_class_name("btn blue trustdevice trustbtn")
for e in elements:
e.click()
but received the same error. Please let me know if any more info is required!
EDIT:
button = browser.find_element_by_class_name("btn blue trustdevice trustbtn")
gives me the same error message as well.