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 the advantages of vbscript?
How strcomp function works?
Mention how you can call vbscript functions?
How will you release the memory acquired by an array variable in vbscript?
Mention the rules for using option explicit statement?
Which operator can be used to do an xor operation in vbscript?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
In what way program "hello world" you can write in vbscript?
Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com
what is the standards used for writing the script in QTP
How to access array data?
What is vbscript language used for and which earlier language is it modeled upon?
did any one attended interview in applabs if you had gone through plz tell me the procedure
What are the environments supported by vbscript language?
hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?