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 |
Why is error handling required?
Out of the different type of operators, which are evaluated first and last in the vbscript language?
how many types of recording are there?
Explain the tristate constants in vbscript?
how to find greatest of n numbers!
Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder
Can anyone send me a vb script function for verifying the functionality of active links on a web page
How do you write an SQL insert statement?
a function that takes an integer array as an argument and returns the largest value in the array. Use the function in a program
How to open excel in vb script?
How to insert snapshot during manual scripting in QTP?
Mention how to access array data?