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 |
do you prepared framework,pls answer this
Why we have to import data from excel sheet to data table?becoz v can directly use test data directly from xl know. can u all pls explain me clearly
what is object repository size?
What is the difference between QTP 8.2 object repository and QTP 9.2 object repository Any body have an please give Answer Mail id: nagireddy.sn@gmail.com
What do you mean by checkpoints in qtp?
How we can capture the dynamic object ex:(rotating globe) in the web page with time gaph is 5 sec..
Synchronizing test
why use Description programming? what is advantages and disadvantage of this methods?
How to Analyze the Checpoint results by Standard Checpoint?
In Manual testing , can u prpare bug report in TD?
QTP Testing Process?
In qtp, how you can get the last character from a string?