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

Hi. I have completed B.TECH(CS) , But I will go to "SECURITY CONSOLE OPERATING" [C.C CAMERA abservation]. IF interviwer asks " Why you choose this job ?" What we will say? urgent.........................urgent...........

0 Answers   IBM,


suppose im having a string wipro123xyz i need to get the value 123 only from the string today 123 will be in the middle from tommorow it will be changing to front or back how to get the no if it changes continously?

2 Answers   Wipro,


what are the metrics in general we use in testing

1 Answers   Tanla Solutions,


give me the code for check point for validating application

1 Answers  


What do you mean by checkpoints in qtp?

0 Answers  


How to make "TEST Batches" in manual testing . How it is possible plz explin in detail?

1 Answers  


How you automate test scripts

1 Answers   Novartis,


How to make arguments optional in a function?

6 Answers   Liquid Crystal,


What is keyword driven testing..what is the use of this in Automated testing

2 Answers   IBM,


In website, protocol has been changed http:to https what you will do? tell me your approach?

1 Answers  


You have a WebTable in Web application. When you Record a Scenario using QTP, WebTable didn't recognized and also Repository is not having Webtable information. In this case How to find RowCount and Coloumn Count?

2 Answers   PanTerra,


Diff b/w test scenario's and test Procedures?

0 Answers  


Categories