This is a migrated thread and some comments may be shown as answers.

Popups are closed automatically.

1 Answer 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 05 Aug 2016, 04:43 PM

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);
myManager.Start();
myManager.LaunchNewBrowser();
myManager.ActiveBrowser.NavigateTo("Http://www.google.com");

 

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

1 Answer, 1 is accepted

Sort by
0
Nikolay Petrov
Telerik team
answered on 10 Aug 2016, 12:21 PM
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:
System.Threading.Thread.Sleep(10000);

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.

Regards,
Nikolay Petrov
Telerik by Progress
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Kevin
Top achievements
Rank 1
Answers by
Nikolay Petrov
Telerik team
Share this question
or