Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid stay signed in message? #1357

Closed
AdotMdot100 opened this issue Jan 6, 2023 · 2 comments
Closed

avoid stay signed in message? #1357

AdotMdot100 opened this issue Jan 6, 2023 · 2 comments
Labels

Comments

@AdotMdot100
Copy link

Is there a way to avoid the stay signed in message? I'm using Easyrepro with MFA and have my MFAsecret key defined in the app.config and during login, it will automatically enter my username, password, and 6 digit code but within about 30 seconds I receive the following that can only be bypassed by me interacting and clicking the element on screen:

image

public void UCITestCreateAccount()
{
var client = new WebClient(TestSettings.Options);
using (var xrmApp = new XrmApp(client))
{
xrmApp.OnlineLogin.Login(_xrmUri, _username, _password, _mfaSecretKey);

            xrmApp.Navigation.OpenApp(UCIAppName.MYCUSTOMAPP);

            xrmApp.Navigation.OpenSubArea("Workspace", "Organisations");

            xrmApp.CommandBar.ClickCommand("New");

            xrmApp.Entity.SetValue("name", "AM automated ui test" + " " + TestSettings.GetRandomString(5,15));

            xrmApp.ThinkTime(2000);

            xrmApp.Entity.SetValue("websiteurl", "UITest");

            xrmApp.Entity.Save();
            
        }
        
    }
@Shakevg
Copy link
Contributor

Shakevg commented Jan 6, 2023

AdotMdot100 Look on #1338

@AdotMdot100
Copy link
Author

AdotMdot100 commented Jan 6, 2023

Perfect thank you! @Shakevg changing the cookie control option to 0 in the browseroptions class file has done the trick for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants