how to display all the links in one page using vb script in qtp.
Answer Posted / sowmya
We can use the page check point to display the number of
links in a web page
or
we can create the child object
set objlink=description.create()
objlink ("micclass").value='weblink'
set odesc=browser("browser").page("browser").childobject
(objlink)
numberoflinks=objlink.count
msg numberoflinks
i think it should work.....
Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
How will you convert a string to lower case string using vbscript?
What is vbscript language used for and which earlier language is it modeled upon?
Explain the scope of the variables using dim, public, and private keywords respectively.
what is used of Property........End Property loop ? how to write the script for it?
Description.Create
What is the extension of the vbscript file?
Which object is used to work with the database in the vbscript language and what statement is used to create this object?
Explain the tristate constants in vbscript?
How can constants be declared in the vbscript language?
What's the difference between vbscript and vb.net?
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.
Explain few date functions in vbscript?
Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function
How do i automate a website www.flyashx.com without having any test cases witin a week time.
What are the 2 ways in which a variable can be declared in the vbscript language?