Ask a Question

Change url on the already opened browser

SOLVED
simonaferrara
Frequent Contributor

Change url on the already opened browser

Hi all,

 

I've got a general question, seems an easy concept but I'm not able to do it for now and I'm not finding information on how to do it.

 

In my test, I've already opened the browser with a previous code like this:

Browsers.Item("edge").Run(url);

then, I want to go to another url within the same test. 

If a newly use the Run method, a warning is generated that tell me that browser is already running.

 

How can I simply change page url with the already running browser, without having warnings?

 

Thanks

Simona

1 REPLY 1
AlexKaras
Community Hero

Hi Simona,

 

Use page.ToURL() (https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/page/tourl-action-pag...)

 

Regards,
  /Alex [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
================================
cancel
Showing results for 
Search instead for 
Did you mean: