Popups are closed automatically.

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    1 posts
    Member since:
    Aug 2016

    Posted 05 Aug 2016 Link to this post

    I am sure that I am just missing a setting, but I need to be able to manually login to a website and it requires 2 factor authentication. When the screen pops up, it closes about 1 second later before I can select my active key. I tried just clicking on the About Internet Explorer button once the browser was launched and had the same results.


    I am just using the lines of code used in the getting started lesson:

    Settings mySettings = new Settings();
    mySettings.Web.DefaultBrowser = BrowserType.InternetExplorer;
    Manager myManager = new Manager(mySettings);


    Once the browser is active, click on the gear and then the About Internet Explorer. The window pops up and immediately closes.


    Thanks in advance for your help.


    Kevin Stone

    Lead Software Engineer

  2. Nikolay Petrov
    Nikolay Petrov avatar
    308 posts

    Posted 10 Aug 2016 Link to this post

    Hello Kevin,

    If I got this right you need a time delay to be able to interact during the login. If so - try to add manual step or this line of code to delay the test execution:

    The 2 factor authentication is usually hart to automate. One way to do it is to start the testing after you log in.

    I hope these directions are helpful.

    Nikolay Petrov
    Telerik by Progress
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top