To count the no of links present in the yahoo home page i
have written the script like this
Set fileSysObject=createobject("Scripting.FileSystemObject")
Set linksFileName=fileSysObject.opentextfile
("D:\samplelinkfile.txt",2,true)
Set linkDescObj=description.Create
linkDescObj("micclass").value="Link"
Set noOfLinks=browser("yahoo").Page("Yahoo!
India").ChildObjects(linkDescObj)
For i=0 to noOfLinks.count-1
linkName=noOfLinks(i).getROProperty("name")
linksFileName.writeline(linkName)
Next
linksFileName.close
Set fileSysObject=nothing
While running the script it showing error that
object "yahoo"isnot found in the object repository.
Is there any setting before running the script? if yes what
is the steps for it.Im using QTP9.0
Answer Posted / rico
Yes, this will give an error if you dont have the objects
(Browser and page) in the OR. So, here is what you can
do...open a new test and record any operaiton on yahoo page
and then later remove the steps generated in Expert view by
reocrding and later paste this code...i think this should
work
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Explain quicktest professional testing process?
How to integrate the qualitycenter with qtp
Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..
what type of run time errors you get while you ar edoing rpg program?
if our qtp vb Script may be Currepted then What we want do?
what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent
How many types of status are there?
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
What is the pros and cons between QTP and Rational Robot
What is the extension of qtp local repository?
Define Environment Variable in UFT and its uses?
What is the Command used to start the QTP
How to find a window is minimized or not
1.explain end to end process of qc,2.how many tabs are in qc9.0,qc10.0 3.what is review, how many reviews are following in aproject 4.how will you get the requirements 5.why do we choose testing 6.how to export tc's and requirements to qc through add-ins
Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?