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

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

1 Answers  


What is driver script and driver script in qtp frame work????

6 Answers   IBM,


Explain about import and export files?

1 Answers  


Which scripting language used by QTP?

1 Answers  


Hi Friends, How many types of Data Bases available in market... What is the diff. while using Syabase and Oracle in a Project... ? and what is the main diff. of Syabase and Oracle databases... ? Thanx in advance..

0 Answers  






1.IF SOME OBJECT IN APPLICATION IS NOT IDENTIFIED BY QTP? HOW WILL YOU OVERCOME THIS? 2. WHEN AND WHYDO U GO FOR DESCRIPTIVE PROGRAMMING? 3. WHAT IS THE DIFFERENCE BETWEEN VB AND VBA? 4.WHAT ARE THE REGULAR EXPRESSIONS YOU USED? 5.IF ANY REQUIREMENT IS ADDED IN YOUR PROJECT, HOW WILL YOU PROCEED TO DERIVE THE TEST CASES AND HOW WILL YOU PERFORM AUTOMATION FOR IT?

2 Answers   RBS,


waht is the difference between QTP 8.2 and 9.0 version

15 Answers   AppLabs, CTS, Polaris,


Are u place all QTP Framework folders in VSS?

4 Answers   TCS,


Can we check environment variable value without existing of environment variable

2 Answers   NIIT,


i this is balaji from chennai i have 4 yrs exp in testing and my qualification is bsc computers i completed in correspondace in which companiies accept the correspondace plz let me know

1 Answers   Accenture,


What will be the script for recovery scenerio.plzanyone give ans with aexample related to banking project

2 Answers   Yahoo,


How u execute test cases in manual testing?

2 Answers   Accenture, Infosys,


Categories