How to check the URL using Automation tool QTP

Answers were Sorted based on User's Feedback



How to check the URL using Automation tool QTP..

Answer / aiswaryan

Dim a
'use output value and take the url text
Browser("QTP Interview Questions").WinEdit("Edit").Output
CheckPoint("edit")
'the output value will be stored in datatable.
a = datatable.RawValue("Edit_text_out")
'a contains the url
msgbox a

Is This Answer Correct ?    1 Yes 0 No

How to check the URL using Automation tool QTP..

Answer / mahesh

hi..dear manisha

For check URL u can go through this following way.

dim Objhello = Brower("name:=XYZ").page
("title:=abc").getroproperty("url")
msgbox Objhello

for more queary u can call me on this nuber..

9986645937.

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More QTP Interview Questions

in flight reservation ex once u login, u go into next window where we hav an option of new, open and help etc.. how to fetch those options and to go to respectiv tab accordingly using qtp.. plz let me knw answer for tis as early as possible. Thanks in advance... asha

1 Answers  


In QTP what is the difference between Step-in, Step-out, Step-over ?

3 Answers   CTS,


I have a Webedit object. some text is entered in that object I want to know the font sixe of that text.How could I do this using QTP? This is a requirement for me. I am happy if any one help on this

3 Answers   GE,


what is the another name for blackbox testing?

7 Answers  


What is the difference between action & script?

3 Answers  






is it possible to change the date format like MM/DD/YY into DD/MM?YY through script in QTP

5 Answers   IBM,


what is risks of testing a project?

5 Answers   AppLabs,


Can any one tell me Difference between Keyword Driven Frame work and Hybrid framework? Its Urgent.

2 Answers   IBM, Wipro,


Is QTP supports Unix. If yes, then how the test automation is done?

0 Answers   iFlex,


I have recorded a test over web application(with IE6.0) in analog mode. But, while running it my test gets failed. Why? (Note: my systray has 3 open web applications)

7 Answers   Xansa,


we have 10 more actions in our test and we are using exit action command to come out from the action if any error s occured.In action 1 if any error occurs control is moving to second action but if we get error in second action exitaction is throwing general run error. Please give a idea to overcome .

1 Answers   TCS,


What is output value?

3 Answers   Ordain Solutions,


Categories