Ask a Question

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

SOLVED
workthrowaway69
Occasional Contributor

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)
});

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
workthrowaway69
Occasional Contributor

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

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

View solution in original post

2 REPLIES 2
Marsha_R
Community Hero

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

I suggest that you contact Support directly with this question.  Here's the link:

https://support.smartbear.com/testcomplete/message

workthrowaway69
Occasional Contributor

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

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

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: