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 will you get a subset of a array in vbscript?
In QTP how to insert a data base check point for web based application and simultaneous link to code in expert veiw. hw to retrieve a data(single coulumn from server) that matches with inserted value manually or exported from excel sheet.
please can you help me to get a code of flames using a visual basic 6
Mention what is byref and byval parameters in vbscript?
How to write VB script for login module?
Which function allows you to instantiate an object given its programmatic identifier or progid?
What is a class in CSS?
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)
Mention how to assign a date value to a variable?
Mention what if you do not specify anything when you call a procedure?
Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.
how to operate webobjects in a webpage using getobject function and then using generic methods?