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

How to grab URL from the popup window

1 Answer 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Neena
Top achievements
Rank 1
Neena asked on 05 Sep 2012, 05:57 PM
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!

1 Answer, 1 is accepted

Sort by
0
Byron
Telerik team
answered on 11 Sep 2012, 01:12 AM
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
Tags
General Discussions
Asked by
Neena
Top achievements
Rank 1
Answers by
Byron
Telerik team
Share this question
or