We have recently implemented okta into our application.
Whenever the user wants to login it will ask for an okta code which will keep on changing every 30 seconds, but while running selenium how should I enter the okta code?
Can I bypass okta for selenium Automation? Or what should I do ?
Ideas and solutions are appreciated.
Thanks in advance.
Pass username and password in the URL For example, if you have basic authentication enabled in the www.example.com/index.html page then by passing username and password in the URL (refer the below code), you can avoid the login prompt and get authenticated automatically.
By adding a hook to the code, users can bypass the Captcha while performing Automation Testing. The Captcha recognizes a bot clicking the checkbox element by the fact that it takes less time for the bot to click as compared to humans.
You can whitelist the test account to not be prompted for MFA under -
Admin >> Security >> Authentication >> Sign On
Reference - https://devforum.okta.com/t/method-to-bypass-multi-factor-athuntication/4669
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With