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 throw an error in vbscript?
write a vb script to display ***** ***** ***** ***** *****
Explain the constants in vbscript?
When importing an excel file that has several columns each with different number of rows into QTP's Global datatable, how can you count the number of rows in a particular column?
3 Answers Logica CMG, McGraw Hill,
How do display output message without using msgbox function?
HI how can handle dynamic image through vb script example we have to create email id fill the edit box(these latters change wrong password) i am wating your answer
hey please tell me how to retriev data from excel sheet which puts the login name and password in the application? plz send me the code..please help me
please can you help me to get a code of flames using a visual basic 6
How to map test cases with Automation script? Please explain in details.With example Thanks for your co-operation(In Advance)
Which command is used for writing text on a page?
How can you have different number of cells for each row of a table in HTML?
How to make sure that items in a wintree are sorted al?