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



in one page we have 100 links i have to click the 99th link how can i click the 99th link...

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

in one page we have 100 links i have to click the 99th link how can i click the 99th link...

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

in one page we have 100 links i have to click the 99th link how can i click the 99th link...

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

in one page we have 100 links i have to click the 99th link how can i click the 99th link...

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

Post New Answer

More QTP Interview Questions

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?

1 Answers   RBS,


WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT

0 Answers   Infosys,


what is the diff b/w assistive and mandatary rules of object repository in QTP???

0 Answers  


How to set the function parameters as optional. Pls anybody can give the answer.. Thanks in advance...

2 Answers   Navis,


Is it possible to convert QTP scripts to Silk scripts?

2 Answers   Sierra Atlantica,






Why u don’t like recording the script and writing the script

3 Answers   Wipro,


UFT 12.02 which ALM version will support

0 Answers  


Using QTP checkpoint, where do you store your expected Properties of the object which later compares with the actual properties of the object???

4 Answers  


How can i store runtime value through vb script while using qtp

1 Answers  


Plz send one Tracebilitymatrix example? Anybody working on Realtime QTP Plz give contact deatils?

1 Answers  


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.

4 Answers  


How do i relate the checkbox properties with webelement when checkbox properties are changing on every login to the application

1 Answers   TCS,


Categories