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

 

 

 

 

2 REPLIES 2
Marsha_R
Community Hero

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

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


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
workthrowaway69
Occasional Contributor

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

cancel
Showing results for 
Search instead for 
Did you mean: