This is a migrated thread and some comments may be shown as answers.

ActiveBrowser.Url

3 Answers 174 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Leo
Top achievements
Rank 1
Leo asked on 26 Apr 2012, 01:09 PM
Hello, Support Team.
I have such a trouble: ActiveBrowser.Url.ToString returns an empty string. I'm using last version of Telerik, Win7 and IE9.
Can anybody help me?

Thank you very much

3 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 26 Apr 2012, 03:27 PM
Hello Leo,

I tested the following code:

ActiveBrowser.NavigateTo("http://www.bing.com");
Log.WriteLine(ActiveBrowser.Url);

and it correctly wrote the URL into the log:


Please provide a code sample I can run directly to reproduce the issue you're experiencing.

All the best,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Austin
Top achievements
Rank 1
answered on 19 Sep 2018, 02:37 PM
What is the syntax to get current URL in coded step. 
0
Nikolai
Telerik team
answered on 19 Sep 2018, 03:34 PM
Hello Austin,

You can get the current url like this: 
string url = ActiveBrowser.Url;

This however assumes that you are using either our code-behind or unit test template. 
If you can elaborate what is your case or if something is not working properly we can give you additional information and guidance.  

Regards,
Nikolai
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Leo
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Austin
Top achievements
Rank 1
Nikolai
Telerik team
Share this question
or