I want to count the total no of links present in yahoo home
page. The script like
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
But while running the script it is fail (the object not
present in the object repository).How to overcome please
tell me the detail steps...for QTP9.30
Answer / satyanj
check whether you have stored the Browser and Page objects
in OR.
| Is This Answer Correct ? | 1 Yes | 0 No |
1)How to test whether items in a weblist are in alphabetical order or not?
How do you get the value of a combo box in Javascript?
how to automatically update the sql server2005 database records when insert in vb6?
Write a program to print all lines that contains a word either “testing” or “qtp”
Have any one know about Test Complete 6, please let me know. If any one have good material regarding Test Complete 6, Please send to my mail id: cns.praveen@gmail.com
wat is com(common object model)object for mozilla firefox??? if any knows the exact answer....plz rply me
what is the use of Data base check point ?
Which operator is used to perform the comparison among 2 operands in the vbscript language?
What is the difference between function and procedure?
What are the different types of loops available in the vbscript language?
how to declare a variable in vbscript using vbscript
How many data types are supported in Vbscript?