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 |
How to delete a cookie using vbscript?
how to organize files in object repository of qtp
How to add actions in driver script to run those actions in QTP?
where can i learn VB scripint ?
Is VBscript case-sensitive?
What variable can you use to share info across the whole application for one user?
write a vb script to display calculator using case statement?
What is event handling in vbscript?
how to set one column as primary key in QTP and fetch values accordingly
Which is the default Data types in VBScript?
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?
How to map test cases with Automation script? Please explain in details.With example Thanks for your co-operation(In Advance)