hi,
In A Table there are some columns and dynamic rows and in each
row in first column there is a link with name. upon clicking on
that link it will show some details. write the vbscript to check
that link without descriptive programming?

Answer Posted / pramod mallick

I think, the table mentioned here is not Excel sheet. It is
a html table on a web page, where 1st colum contains links
with name="name".

So, the porblem is when you 1st record the script, there
are 2 rows (example) and 2 links with description = "name",
so, qtp object repository will add location property to
link (1st link = Location:0, 2nd Link = Location:1 etc..)

When you execute the script, there are 5 links with
name="name" (because of 5 dynamic rows added). Now, how do
you select /click other 3 links (3,4 and 5). Because, you
have only 2 Links recorded.

The 1st and best solution is descriptive programming. The
interviewer asked for without desriptiev programming.

The psedu code is given below.
-- Record only one link (with location:0)

Do

browser.page.frame.Link(location:0).Click
-- Change object description for Link, Update Location
to 1 instead of 0.
bExist = Browser(b).Page(p).Link.Exists

Loop While bExist = True

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are some test assets and related extensions of qtp?

555


How to modify object property in qtp ?

565


What is the registration process and examination fees?

553


Should have experience in framework means?

1417


How to handle dynamic objects in quicktest professional (qtp)?

546






How will you compare keyword and expert view?

539


How many add-ins comes by default with quicktest professional?

554


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

1637


Discuss quicktest professional environment?

590


Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?

1423


How to add synchronisation points in qtp?

577


How do you synchronization point through DP?

602


What is an optional step in qtp ?

636


How you can find length of array in qtp?

544


can any one say that where we can download the QTP trail version ??????????

1364