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 / guest
Good Question.......
here i used regular expressions concept with descriptive
prgming...Rough idea given to u...surely this approach can
work out...
Set opage=browser("Gmail: Email from Google").Page("Gmail:
Email from Google")
Set childobjdes = Description.Create()
childobjdes("mic class").value="Web Element"
childobjdes("html tag").value=".*[A-Za-z0-9].*"
childobjdes("outer text").value =".*[A-Za-z0-9].*"
set allobj = opage.ChildObjects(childobjdes)
msgbox allobj.count
For i=1 to allobj.count-1
text=text&allobj(i).getroproperty("outer text")
Next
msgbox text
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
how to download mercury qtp9.2 ny internet ?
What is the limitation to XML Checkpoints?
Explain the concept of object repository and how QTP recognizes objects?
What is the difference between QTP and WinRunner? Why do you choose only QTP for automation among remaing tools like Rational robot and silk test? Write the VBscript for any functionality in your project ? What is the cost of QTP ? If you entered into yahoo mail with your valid user name then you will get FOR EXAMPLE , " welcome to krishna " on the top of inbo page , how can you test it in QTP? What type of testing you can do, when we gave you 5 screens and how can you test that application? What type of framework you are using in your company and explain it?
How does quicktest professional (qtp) identifies the object in the application?
How many ways we can parameterize data in quicktest professional?
Brief the process of testing with UFT?
How can I import environment from a file on disk?
www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example
what is the difference btn risks & Therads in the Test plan documentation?
What is standalone database?
What are the different ways to invoke an application using QTP?
Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com
How does qtp identify the object in the application?
What are the methods of the TextStream object that are used for reading from a text file?