Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How to create a run time propertyfor an object?

3 Answers   IBM,


Which version of QTP is using by companies nowadays?

4 Answers  


What is the extension of the qtp local repository?

0 Answers  


What is a checkpoint? How many check points are there in qtp?

0 Answers  


What are the different types of functions available in qtp and explain ?

0 Answers  


how can we handle exceptional handling in qtp

6 Answers   NIIT,


To count the no of links present in the yahoo home page i have written the script like this Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile ("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo! India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing While running the script it showing error that object "yahoo"isnot found in the object repository. Is there any setting before running the script? if yes what is the steps for it.Im using QTP9.0

2 Answers  


what is descriptive programming?

5 Answers   Ordain Solutions,


Please explain me frameworks & how to generate the scripts in framework

0 Answers   ADP,


Is there any site to download QTP....otherwise tell me the way how to get the QTP sofware??????????????????? Thnx in advance

5 Answers   Cegonsoft,


Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)

0 Answers   GXS,


In QTP how to interact tool and application build?

2 Answers  


Categories