Connecting to the Model Popup failing in my Test Case.
My scenario is I have to create a new record and i have to edit that record. While creating the record i am able connect Modal popup successfully with the below code.
Manager.SetNewBrowserTracking(true);
Manager.WaitForNewBrowserConnect("http://mytestapp/Tools/Subject/dialogs/edit.aspx", true, 5000);
Manager.ActiveBrowser.WaitUntilReady();
Manager.SetNewBrowserTracking(false);
But while editing the same record it can't able to connect to Modal popup, because the URL is having query string .
After removing the query string it is working in IE but failing in FireFox and Chrome
Can you please guide me what can be done to make the test case work in all browsers?
Log for the failure is:
'21-01-2013 17:40:52' - 'Fail' : 25. [Sub_Test_CodedStep7] : Connect to modal pop-up window : Edit Subject - Microsoft Dynamics CRM -- Webpage Dialog, ConnectToPopup=True
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[Sub_Test_CodedStep7] : Connect to modal pop-up window : Edit Subject - Microsoft Dynamics CRM -- Webpage Dialog, ConnectToPopup=True'.
InnerException:
System.OperationCanceledException: Exception occured 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)
My scenario is I have to create a new record and i have to edit that record. While creating the record i am able connect Modal popup successfully with the below code.
Manager.SetNewBrowserTracking(true);
Manager.WaitForNewBrowserConnect("http://mytestapp/Tools/Subject/dialogs/edit.aspx", true, 5000);
Manager.ActiveBrowser.WaitUntilReady();
Manager.SetNewBrowserTracking(false);
But while editing the same record it can't able to connect to Modal popup, because the URL is having query string .
After removing the query string it is working in IE but failing in FireFox and Chrome
Can you please guide me what can be done to make the test case work in all browsers?
Log for the failure is:
'21-01-2013 17:40:52' - 'Fail' : 25. [Sub_Test_CodedStep7] : Connect to modal pop-up window : Edit Subject - Microsoft Dynamics CRM -- Webpage Dialog, ConnectToPopup=True
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[Sub_Test_CodedStep7] : Connect to modal pop-up window : Edit Subject - Microsoft Dynamics CRM -- Webpage Dialog, ConnectToPopup=True'.
InnerException:
System.OperationCanceledException: Exception occured 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)