Multi-factor Authentication - automation testing

I am using selenium for automation testing and web has a OKTA multi-factor authentication, which requires a code to be sent to phone/email. I don’t want to be using 3rd part website to reterive code and looking for possible solution which allows me to get code without having to be sent to a phone/email.

Please could someone help me?

I would love to hear more about this as well.

Create a test identity that has a policy without MFA. Make sure the identity has least privilege for what it needs to do. Beyond the support answer below I would apply a policy to the identity that only allows authentication from the test computer.

This link to a support case hints at the solution: