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

hello all i need some good sites or blogs which give info abt vb script with examples n real time scenarios.just like tutorials as i m new to qtp n vbscripting. its urgenttt

2 Answers  


While recording a login window QTP is identifying only parent window,then how can u identify the child objects.

2 Answers   Symphony,


What information do the columns in the Keyword View show for each step?

1 Answers  


Question:how many types of repositories in QTP9.2?and explain??

3 Answers  


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

1 Answers  






how to retrieve the value from data table to the script and using the value to be displayed in message box. an also retrieve the value of the output value during runtime to the script or separating and using that value in the script.

1 Answers  


how you have used object libraries? plzzzzz do answer

1 Answers  


How many scripts did you have?

0 Answers  


Hi all im having a pop up validation browser which is 20 in number, i want to close those similar pop browsers one after the other, is there any specific code for that? i tried by giving creation time & putting in a loop but it dint work? valid working answers will be greatly appreciated

2 Answers   McAfee,


A question was asked in a company-suppose, I am testing a website on QTP, all the time a new title bar is appeared on next page. Trying to use regular expression under key word driven testing but expert view is also appearing unchanged and error is also generating, do you have any best resolution for that kindly explain in detail. please dont give example of yahoomail, that is unable to clear my doubt.

2 Answers  


What are the framework folders?

1 Answers  


Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........

0 Answers  






Categories