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
How to run a test using quicktest professional (qtp)?
Differences between quicktest professional (qtp) and winrunner?
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.
Have you faced any problems with object repository?
How to execute a winrunner script in quicktest professional?
How to carry out bit map check points in QTP
Have you used xml check point in your project?
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
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?
Is it possible to call from one action to another action in qtp?
when will you do debug your script? and explain that process?
How do I get the QTP scripts result in xml format by using vb script function?
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
Explain the features of quick test pro(qtp)?
Hoe can we do retesting using functions please give the code for it using login page