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 |
Hi I don't have any idea on VBscript. can any one point me to a good web site to learn VBscript. Regards lina
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
write a vb script to display factorial of a number using function
Does VB/Win make standalone .EXE files?
How to get the background color of a weblist?
how to add the shared repository file to the script file while running the script manuall
A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.
When are redim statement and preserve keyword used in the vbscript language?
how to write basic programs in VB Script like addition, multiplication?
i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me
which is the best institute in banglaore for software testing?
How to declare an array in vbscript?