ActiveBrowser.Url

4 posts, 0 answers
  1. Leo
    Leo avatar
    6 posts
    Member since:
    Dec 2011

    Posted 26 Apr 2012 Link to this post

    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
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 26 Apr 2012 Link to this post

    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
  3. Austin
    Austin avatar
    11 posts
    Member since:
    Sep 2015

    Posted 19 Sep in reply to Anthony Link to this post

    What is the syntax to get current URL in coded step. 
  4. Nikolai
    Admin
    Nikolai avatar
    105 posts

    Posted 19 Sep Link to this post

    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!
Back to Top