While am recording a test case, one of the steps is to connect to HTML popup loads pdf file so,,
**Record for connecting to the popup will be registered.
And when close the popup, so
**Record for closing the popup will be registered.
And when run the testcase then the step connecting to the HTML dialog will fail.
Please note that am adding wait and delay until the dialog open.
System.OperationCanceledException: Exception occurred waiting for the new browser to connect. ---> 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.Manager.WaitForNewBrowserConnect(String url, Boolean isPartial, Int32 timeout) --- End of inner exception stack trace -- --
Below is the Codded step:
Manager.WaitForNewBrowserConnect(https://ev.be.rshos.net/portll/report/reportShow.do?mode=show&reportId=22&module=Licene, true, 5000);
Regards,
Romio