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
'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
msgbox Objhello

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


Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More QTP Interview Questions

hi Action 1 and action2 if we save it in C:, what folders will be created explain plz

3 Answers   iFlex,

regular expression

2 Answers   Wipro,

What are all the common questions asked for the candidates having more than 1 yrs exp in QTP?

1 Answers  

How many types of Parameters are available in QTP? and Pls Explain with example.

4 Answers   LG Soft,

What is data driven testing in QTP?

11 Answers   Agile Software,

hi i am new to qtp i need to run all files by a batch what is the procedure and what are following actions to be take?

1 Answers   ADP,

what is main diff of qtp8.2 and qtp9.0?

1 Answers   Covansys,

why was automation used in the project?

1 Answers   Google,

from what stage you will start automation in your project

5 Answers   TCS,

one ok button and one text box is there.when i click on ok button in that text box one no. will display from 1 to 100 randomley.if that is not 100 when we click on ok button again ,again another text box ll created with another no. we will continue this till the text box created and displays 100.and when its 100 ok button should disabled. remember thet no will display not seriely ,it displays randomley,and each time new text box will created.

6 Answers   ADP,

Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter

0 Answers   TCS,

When i used this below script to insert value in the Datatable... At run time it was inserting the given value in the specified column, But after execution all those inserted values were cleared automatically... datatable("column name",sheetid)=value

1 Answers