how to display all the links in one page using vb script in qtp.
Answer / 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 |
How to assign a numeric value to a variable?
how to write function to validate the number of characters entering into the text box?
What are string functions in vbscript?
How do you get the value of a combo box in Javascript?
How to Import data from a file (file is on the desktop) to the data table
How to take whole text output from screen of Bitmap Application.
How will you get the exponent of the given number in vbscript?
how does vb script help in web page designing? explain with example.
I need to get some data from data base and store this (retrieved) data in a excel sheet using VB script in QTP9.0 I have created connection for data base I have created as excels sheet by using Set XL=CreateObject("Excel.Application") XLworksheet.cells(1,1).value= rs.fields.item("<<The data retrieved from data base >>") I have taken a for loop and changed the cells values (1 as i and another 1 as j) But still I am not able to get Plz kindly tell me know this . It is very urgent
How will you convert a string to lower case string using vbscript?
Explain about arrays in vb script?
What variable can you use to share info across the whole application for one user?