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 Posted / satyanj
check whether you have stored the Browser and Page objects
in OR.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Anyone have qtp11.0 crack?
What is the difference between vbscript and vba?
Explain about arrays in vb script?
after medical test,when will be the police verification
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
How can you create an object in vbscript?
how to operate webobjects in a webpage using getobject function and then using generic methods?
What is the use of the instr function?
What is the purpose of on error resume next statement?
What is dictionary object in vbscript? Explain?
What are the uses of vb script?
What is the use of the formatdatetime function in the vbscript language?
why variable name should not exceed 255 characters?
Mention what are the rules to name variable in vbscript?
Why is the use of exit do or exit for statements within loops discouraged?