How to grab URL from the popup window

2 posts, 0 answers
  1. Neena
    Neena avatar
    1 posts
    Member since:
    Aug 2012

    Posted 05 Sep 2012 Link to this post

    Hi There,
    I was wondering if there is a way to grab url from popup window and paste in another browser with record and run.
    Thanks!
  2. Byron
    Admin
    Byron avatar
    184 posts

    Posted 10 Sep 2012 Link to this post

    Hi Neena,

    Thanks for trying Test Studio. It is possible to use a coded step to extract the URL of the current active browser. To do so, access the URL property of the ActiveBrowser object and extract its value. An example coded step would look like this:

    SetExtractedValue("extractedURL", ActiveBrowser.Url);


    After this step, you can data drive the Navigate step to use this extracted variable for its URL value. 

    Please let us know if we can assist you further.

    Kind regards,
    Byron
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top