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
What are class variables?
What is loose binding? Why is it not a good practice to use it?
what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
What is the difference between for loop and while loop?
What is the event handling in vbscript?
How to access array data?
Compare java script and vb script?
How can you create a file object to work with the files in the vbscript language?
What is the use of option explicit statement?
Explain about .wsf files?
Mention how to access array data?
How will you get a combined string from array of string in vbscript?
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)