in one page we have 100 links i have to click the 99th link
how can i click the 99th link.
Answers were Sorted based on User's Feedback
Answer / anish wilson
Using descriptive programming.
set objLink= Description.Create()
objLink("micclass").value="WebLink"
set intObjLink= .childObjects(objLink)
Count= intObjLink.Count
intObjLink(Count-1).Click()
| Is This Answer Correct ? | 28 Yes | 4 No |
Answer / uday
set lnkObj=description.create
lnkObj("index").value=98
B().p().link(lnkObj).click
or
b().p().link("index:=98").click
| Is This Answer Correct ? | 14 Yes | 1 No |
Answer / murali.nachahally
set odes=description.create
odes("htmltag").value=linkbtn
coll=browser("browname").page("page name").frame("frame
name").cheildobjects(odes)
msgbox coll.count
for i=0 to coll-1
if i = 99
coll(i).set "ON"
browser("browname").page("page name").webedit("link").set click
end if
next
| Is This Answer Correct ? | 6 Yes | 4 No |
Answer / praveen
Using index of the link.As index starts from zero u can fin
the index of required link and then perform the required
operation.
| Is This Answer Correct ? | 2 Yes | 2 No |
Can you write a script to check if the folder exists or not?
Wt is the difference between Business Component and scripted component?
How to Test the mainframe application?
how to capture (or) checkpoint for chineese or any other language except english using QTP in a web page. ( my application have 24 language, how to check those lanugages using QTP? is it possible). Please let me know
how to disable the pop ups through QTP using a script
HOW DO U CALL A ACTION IN QTP?
w is recovery senario manager
How to create an instance in QTP?
How to set the function parameters as optional. Pls anybody can give the answer.. Thanks in advance...
Does QTP support Java Script also. Which is one is preferrable for QTP, VB script or Java script
Can any body tell me how can I choose the share object repository and per action object repository mode. Please give me with steps.
Can anyone explain about Keyword driven framework in detail and how to use it in case of any project