I'm writing a script in Selenium (Python) and I am having an issue with a disabled clicked Button. The button becomes active only when the form is completed.
<button type="submit" class="pm_button primary large humanVerification-completeSetup-create" ng-disabled="model.emailCodeVerification === '' && model.captcha_token === false && model.smsCodeVerification === ''" translate="" translate-context="Action" disabled="disabled">Complete setup</button>
This is the button HTML part. Now the button looks like this:
Button Image http://prntscr.com/pl4u96
As you can see, it's not clickable. The button activates only when the captcha or any other type of verification is completed. Now my only request is to detect the Button when it becomes active.
<button type="submit" class="pm_button primary large humanVerification-completeSetup-create" ng-disabled="model.emailCodeVerification === '' && model.captcha_token === false && model.smsCodeVerification === ''" translate="" translate-context="Action">Complete setup</button>
This is the code after the Captcha or another type of verification is completed.
The part disabled="disabled"
in the first code line is completely removed when the verification is completed. I genuinely have 0 ideas of how to detect it and I failed on finding a good solution.