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 Posted / satyanj
check whether you have stored the Browser and Page objects
in OR.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to Import data from a file (file is on the desktop) to the data table
How will you release the memory acquired by an array variable in vbscript?
How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.
What are the advantages of vbscript?
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
What is loose binding? Why is it not a good practice to use it?
I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?
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
How can the spaces from the string be removed?
Which date function is used in the vbscript language to find the difference between the 2 dates?
What is variant in vb script?
Explain the .wsf files?
did any one attended interview in applabs if you had gone through plz tell me the procedure
What are keywords in the vbscript language?
Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?