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
Explain the concept of how quicktest professional (qtp) identifies object?
Where you are storing your script?
What is the use of sendkeys and what are send keys
How qtp identifies objects?
What is text check point and text area check point?
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
What is synchronization point in QTP?
What is active screen?
How to define array in qtp?
is it possible to add sheets to excel at runtime
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
What are the data types in qtp?
wht type of User defined functions or Java Releated functions do we write in VB scripting
what are the challenges you have faced while testing web based application using the automation tools ?
Have you done batch testing in qtp? If yes how you are doing?