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 |
1...HOW MANY TYPES OF OBJECT REPOSITORY ARE THERE IN QTP? 2....WHAT ARE THE REPOSITORY FEATURES EXPLAN. 3...HOW TO CREATE A RECOVERY SCENARIO? WHAT DOES RECOVERY SCENARIO MANAGER DO? 4...OPEN A WORD FILE AND MODIFIED WITH SOME VALUE USING QTP? 5... HOW TO CREATE EXCEL FILE USING QTP? 6... HOW TO RETRIEVE A VALUE FROM WEB TABLE? 7... WHAT IS QC REQUIREMENT TAB DO ? HOW TO MAP THE REQUIREMENT? 8... HOW TO PASS A VALUE FROM EXCEL FILE TO SCRIPT? 9...WHAT IS THE USE OF SPLIT FUNCTION?
WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT
what is the diff b/w assistive and mandatary rules of object repository in QTP???
How to set the function parameters as optional. Pls anybody can give the answer.. Thanks in advance...
Is it possible to convert QTP scripts to Silk scripts?
Why u don’t like recording the script and writing the script
UFT 12.02 which ALM version will support
Using QTP checkpoint, where do you store your expected Properties of the object which later compares with the actual properties of the object???
How can i store runtime value through vb script while using qtp
Plz send one Tracebilitymatrix example? Anybody working on Realtime QTP Plz give contact deatils?
How to call the userdefined functions to script? If i am stored 'add()' function in Library functions folder. i want to cal that function in my script.
How do i relate the checkbox properties with webelement when checkbox properties are changing on every login to the application