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 many maximum number of virtual users we can create?
What is Unicode Compatibility?
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
Whether qtp 9.0 supports Test director8.0
What are the key elements available in test result window?
Hi Friends, I worked with 8.2 not with 9.2. Please help me in this prob. I created one script and recorded some think and save as Test 1 then I opened process--open the object repository manager. Switch to file->save->give some name->save as Objectrepo1.tsr file. (This is the global repository file.) Then I went to object repository->tools-> associate repository ->click + icon ->open the previously saved Objectrepo1.tsr file. This is the global repository Now I created one more script and save as Test 2. In this script I am calling script with the Help of "Call of existing action" and I executed but QTP is not able to execute B’cos it is QTP is not able to read the Object Repository of Test 1. Please let me know why? Once I made Script 1 as a shared Obj. Repository so it would not give any Problem. Right?
Is QTP supports Unix. If yes, then how the test automation is done?
How you create new action in qtp?
Explain different types of checkpoints?
How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)
What is quicktest professional?
Is the qtp course will help to create a virtual object?
What is the new version of qtp which is recently released in the market?
How to import a test case present in ".xls" file to TD under a Test set?
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.