microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
515 stars 286 forks source link

[BUG] Stale Element Exception during Login #1086

Open imartinflores opened 3 years ago

imartinflores commented 3 years ago

Bug Report

EasyRepro Version

UCI or Classic Web

Online or On Premise

Browser

Describe the bug
stale element reference: element is not attached to the page document at Microsoft.Dynamics365.UIAutomation.Api.UCI.WebClient.Login(Uri orgUri, SecureString username, SecureString password, SecureString mfaSecretKey, Action`1 redirectAction)

xrmApp.OnlineLogin.Login(_xrmUri, _username, _password);

Expected behavior
Should Login without issues

imartinflores commented 3 years ago

Apart from Stale Element, we are not using MFA, and seems like sometimes we are getting the error: "Something went wrong entering the OTC. Please check the MFA-SecretKey in configuration."

Can we make a validation if MFA is null, then it should not wait for anything to set the MFA.