Forum Discussion

workthrowaway69's avatar
workthrowaway69
Occasional Contributor
3 years ago
Solved

Navigate method is opening new Chrome tab rather than switch to different URL

Installed TC v14.91 this morning and now all my Navigate calls to change the page URL to a different page are now loading a new Chrome tab and breaking the test.

This did not happen in all previous versions.

I've got a basic Specflow method that handles the page navigation.

Can someone please explain what has changed in TC v14.91 that causes Navigate to not work properly?

 

 

 

When("I navigate to webPage {arg}", function (menu){
  temp = Project.Variables.Url+menu;
  Browsers.CurrentBrowser.Navigate(temp);
  CommonHelpers.ForceARefresh();
  Log.Checkpoint("Navigated to page: "+menu)
});

 

 

 

 

  • I've switch it to use .ToUrl() with usages of Sys.Browser("chrome") rather than Sys.Process("chrome") and we're OK now.