In a page i have N number of links at a time i would like
to open those links by using QTP?how to do that?
Answers were Sorted based on User's Feedback
Answer / hokrani
Set ObjLink=Description.Create
ObjLink("micclass").value="Link"
Set PageLink= Browser("..").Page("..").ChildObjects(ObjLink)
For i=1 to PageLink.count
PageLink(i).Click
Next
| Is This Answer Correct ? | 7 Yes | 1 No |
You can get it by first create description object like :-
set deslink = description.create()
deslink("micclass").value = weblink
then you can use this variable to get number of link in the
page like.
set bro = browser(" ").page (" ")
set countlink=browser(" ").page("
").weblink(deslink).childobjects
for countlink = 0 to countlink-1
bro.weblink(deslink).click
next
| Is This Answer Correct ? | 3 Yes | 3 No |
What is keyword view and Expert view in QTP?
Can anybody give the script to addsheet, add column,add values under that column in the rows?
What are FAST and NORMAL modes in qtp ? Why r these modes intended for ?
regular expression
Why VB scripts are used in QTP and TSL in Winrunner, is there any advantage of using VB Scripts
how to do the batch testing in test director using manual testing procedure?
what does it mean when a check point is in red color? what do u do?
terminal services client
How to make Non reusable actions into reusable action? is that feature available in QTP
Which version of QTP is using by companies nowadays?
How to call a test from another test?
please clarify the question ................. i know how to open the notepad file ? but i don't know how to enter the data into opened notepad ? Ex: set a=createobject("wscript.shell") a.run "Notepad.exe" please give the replay. my mail id is raju.ippali@gmial.com, 9823257761