Hello,

Can we capture only the labels of the web page in the
object repository. If yes, then how.

Actually my scenario is:
I have to capture all the label of mercury site
http://newtours.mercuryinteractive.com/tour/mercurypurchase.
php.
and want to copy all these labels in the notepad.

So,please help me how to do this all.


Thanks in advance,
Gaytri

Answer Posted / chaitu

Line: 1 Set a = Browser("Browser").Page
("Page").StaticLabeltext

Line: 2 msgbox a

Step:3
'Create the Notepad file and Save the url in that

Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.CreateTextFile("D:\Documents and
Settings\Administrator.SEERVER\Desktop\chaitu.txt", True)
MyFile.WriteLine(a)
MyFile.Close

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to run a test using quicktest professional (qtp)?

781


Differences between quicktest professional (qtp) and winrunner?

897


I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

1500


Have you faced any problems with object repository?

809


How to execute a winrunner script in quicktest professional?

772


How to carry out bit map check points in QTP

1962


Have you used xml check point in your project?

758


hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com

3902


iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?

1851


Is it possible to call from one action to another action in qtp?

798


when will you do debug your script? and explain that process?

1667


How do I get the QTP scripts result in xml format by using vb script function?

2011


How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks

1780


Explain the features of quick test pro(qtp)?

781


Hoe can we do retesting using functions please give the code for it using login page

1759