Using Telerik Test Studio standalone version 2012.1.7190.
I am running a Test list against all the major browsers. However, the tests are failing because of Chrome Version 22.0.1229.94 m
The actual problem is occurring when the test reaches a specific step, clicks on a link which creates a new tab instead of a pop-up window
This is an example of the link
My work around
if(ActiveBrowser.BrowserType == BrowserType.Chrome)
{
ActiveBrowser.Manager.LaunchNewBrowser(BrowserType.Chrome,false);
Log.WriteLine("URL of link: " + Pages.PropertyServicesSearch1.LCInventoryLink.HRef);
ActiveBrowser.NavigateTo(Pages.PropertyServicesSearch1.LCInventoryLink.HRef);
ActiveBrowser.WaitForUrl(Pages.PropertyServicesSearch1.LCInventoryLink.HRef,false,30000);
}
Unfortunately, the newly launched browser gets stuck at for 30 seconds (30000) at Preparing browser for automation...
Is there a better way?
I am running a Test list against all the major browsers. However, the tests are failing because of Chrome Version 22.0.1229.94 m
The actual problem is occurring when the test reaches a specific step, clicks on a link which creates a new tab instead of a pop-up window
This is an example of the link
HtmlAnchor:<a href="http://www.google.co.uk" target="_blank">
The code cannot be changed and because "_blank" is not guaranteed to be a new tab or window. It's implemented differently per-browser. I have implemented the workaround below;
My work around
if(ActiveBrowser.BrowserType == BrowserType.Chrome)
{
ActiveBrowser.Manager.LaunchNewBrowser(BrowserType.Chrome,false);
Log.WriteLine("URL of link: " + Pages.PropertyServicesSearch1.LCInventoryLink.HRef);
ActiveBrowser.NavigateTo(Pages.PropertyServicesSearch1.LCInventoryLink.HRef);
ActiveBrowser.WaitForUrl(Pages.PropertyServicesSearch1.LCInventoryLink.HRef,false,30000);
}
Unfortunately, the newly launched browser gets stuck at for 30 seconds (30000) at Preparing browser for automation...
Is there a better way?