When using the Login method with 5 parameters (private LoginResult Login(IWebDriver driver, Uri uri, SecureString username, SecureString password, SecureString mfaSecretKey = null, Action redirectAction = null)), it is supposed to click on Use Another Account if it sees the 'Pick an account' screen (attached). However, in my environment, it does not always work, sometimes take 2-3 minutes to work. I was able to fix it by adding a timeout value to the ClickIfVisible line.
Current:
driver.ClickIfVisible(By.Id(Elements.ElementId[Reference.Login.UseAnotherAccount]));
When using the Login method with 5 parameters (private LoginResult Login(IWebDriver driver, Uri uri, SecureString username, SecureString password, SecureString mfaSecretKey = null, Action redirectAction = null)), it is supposed to click on Use Another Account if it sees the 'Pick an account' screen (attached). However, in my environment, it does not always work, sometimes take 2-3 minutes to work. I was able to fix it by adding a timeout value to the ClickIfVisible line.
Current:
driver.ClickIfVisible(By.Id(Elements.ElementId[Reference.Login.UseAnotherAccount]));
My change:
Is it possible to have this change made?