Hello,
I'm currently using Test Studio Version 2016.3.928.0 to test an ASP.NET Web Application. My test goes to my published application and a prompt is immediately prompted when the URL is hit to get the user's username and password. In Chrome, Edge, and Firefox the test runs fine when I do a navigation step and then deal with the dialog in the next step. In IE (version: 11.1770.14393.0), however, the test fails at the navigation step with the following information in the log:
Overall Result: Fail
------------------------------------------------------------
'10/11/2017 6:43:31 PM' - Executing test: 'Internet Explorer', path: 'Internet Explorer.tstest.'
'10/11/2017 6:43:31 PM' - Using .Net Runtime version: '4.0.30319.42000' for test execution. Build version is '2016.3.928.0'.
------------------------------------------------------------
------------------------------------------------------------
'10/11/2017 6:43:33 PM' - Using 'InternetExplorer' version '11.0' as default browser.
'10/11/2017 6:43:34 PM' - LOG: Unexpected dialog encountered. Taking no action.
'10/11/2017 6:44:34 PM' - 'Fail' : 1. Navigate '/'
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Wait for condition has timed out
InnerException:
System.TimeoutException: Wait for condition has timed out
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.InternalNavigateTo(Uri uri, Boolean useDecodedUrl)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri, Boolean useDecodedUrl)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url, Boolean useDecodedUrl)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.NavigateToActionDescriptor.Execute(Browser browser)
at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'10/11/2017 6:44:34 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'10/11/2017 6:44:34 PM' - Overall Result: Fail
'10/11/2017 6:44:34 PM' - Duration: [1 min: 0 sec: 296 msec]
------------------------------------------------------------
'10/11/2017 6:44:57 PM' - Test completed!
I see that it detected the logon dialog, but it says it's timed out waiting for a condition. I'm not sure what condition it's expecting to since it did go to the proper URL. Nor am I sure how to find a workaround. In the other browsers I just set the BaseURL to my application URL and did the NavigationURL as '/' and the step didn't fail in the other browsers, but it still fails in IE. I've recalibrated my browser and ran updates on Windows 10 and it hasn't had any impact on this error.
Thanks,
Jessica
4 years later, I am having this problem and the solution does not compile. Can anyone assist? The logon prompts are on-screen, not a dialog.
[ Compiler ]
13:49:27 'ERROR' > c:\Users\CKELLY\Documents\Test Studio Projects\TestProject1\WebTest.tstest.cs(55,47) : error CS0103: The name 'Keys' does not exist in the current context
13:49:27 'ERROR' > c:\Users\CKELLY\Documents\Test Studio Projects\TestProject1\WebTest.tstest.cs(57,47) : error CS0103: The name 'Keys' does not exist in the current context
13:49:27 'ERROR' > c:\Users\CKELLY\Documents\Test Studio Projects\TestProject1\WebTest.tstest.cs(62,47) : error CS0103: The name 'Keys' does not exist in the current context
13:49:27 'ERROR' > c:\Users\CKELLY\Documents\Test Studio Projects\TestProject1\WebTest.tstest.cs(65,47) : error CS0103: The name 'Keys' does not exist in the current context
13:49:27 'ERROR' > c:\Users\CKELLY\Documents\Test Studio Projects\TestProject1\WebTest.tstest.cs(66,47) : error CS0103: The name 'Keys' does not exist in the current context
13:49:27 'INFO' > Build Failed