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 |
am giving to one number u can set into that in date format.u can use any methods
i created script for login in QTP,i parametirized that using global sheet,problem i am facing is first i want to login with first values provided in excelsheet and want to perform some operation,second time if call same action it should login with second values in excelsheet
Write a program to create a Dynamic array of size 5 elements and display all the elements.
Hi, Anybody could tell me What is the 3rd Largest Number in the series..Thanks in Advance..
Plz give the vb script for the following scenerio. In travel booking we have to select from delhi to mumbai from the combobox The prices will be display in another combo box .But i have to select the lowest price for it and submit it
What are string functions in vbscript?
How to return only alpha bate string from an string str = "bibhu@#$%&das&*)(SUndar"
Write a program to print all lines that contains a word either “testing” or “qtp”
What is the use of the formatdatetime function in the vbscript language?
How to get the background color of a weblist?
What is the output of a + b in vbscript if a = 5 and b = 10?
How can you create a file object to work with the files in the vbscript language?