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

How will you report the bug and explain the defect tracking sheet you handled?

0 Answers   TCS,


Hi, this is venkatesh. Q: I have 10 files in a folder(say D:\). Out of which there are some .txt, .xls, .doc. I want to know how to get the count of each file using qtp? If U have any ans, plz write script for that...

4 Answers   EDS,


Inserting a Call to Action is not importing all columns in Datatable of globalsheet. Why?

1 Answers   Crea,


what is Supplemental Objects ?

0 Answers  


1. How to capture data from images in QTP and produce them in Excel sheet

1 Answers   Broadridge,






In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!

0 Answers  


how we connect oracle or sql data server database to qtp. Hi Ram I was your answer for this. Can you kindly let me know in details steps on How we can connect to database. i am using QTP9.2 and SQL Server Database. I am new for QTP and this would be of great help.Thanks

2 Answers  


what type automation is fofollowed in the project?

1 Answers   Satyam,


What are the challenges u faced in testing with crm domain? How u overcome with?

0 Answers  


can a Function return more than one value..??? if so please give me the code for that.

5 Answers   DST Global Solutions,


How to interact tool & application build in QTP?

0 Answers  


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

0 Answers  






Categories