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
Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks
How many scripts did you have?
can i compare two databases using QTP ?
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
What is different command used in command Prompt while using QTP?
What is the registration process and examination fees?
How do know the number of browsers opened?
What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?
What is object repository in qtp?
How may types of defects identify application or your currently working application?pls give me answer..
How many add-ins comes by default with qtp?
How to find a window is minimized or not
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?
how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!
What is the quicktest professional (qtp) testing process?