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
What is file database?
what is the hierarchy to use properties in descriptive programming
Have you used xml check point in your project? How?
what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com
how to download mercury qtp9.2 ny internet ?
What are the recording modes in qtp?
What is object spy in quicktest professional?
Hi How to retrieve data from web element line by line?
Where we can use the synchronization?
What is the Difference between test object and run time object?
when a test case is written how u test using qtp
Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?
What is post recovery scenario?
Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?