How to identify the objects using descriptive programming
when the object property values are same, i mean in a page
10 objects are there i want to click the 6th object but all
the object property values are same? using descriptive
programming

Answers were Sorted based on User's Feedback



How to identify the objects using descriptive programming when the object property values are same,..

Answer / abi

If u r going to click on the 6th object, then give the
index value as 5 in the descriptive programming. For
example, if u r trying to clcik on an OK button where in
the same page, u have 10 OK buttons, then

Browser("").Page("").webbutton
("name:=OK","Class:=button","htmltag:=sumbit","index:=
5").click

this will click on the 6th OK button of the page.

Is This Answer Correct ?    8 Yes 0 No

How to identify the objects using descriptive programming when the object property values are same,..

Answer / narayana

by assigning index value to each object, we can make qtp to
identify the object uniqely

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More QTP Interview Questions

WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?

6 Answers   CTS,


Give me diffrent script in QTP for Webpage(Java and .Net),WindowsBased Applications,Java application,.Net application...

2 Answers   TCS, Virtusa,


How to get line numbers in your editor in expert view?

2 Answers  


How to create log file in qtp?

2 Answers   AppLabs,


What is diff betwee datatable.importsheet "path" and datatable.import

2 Answers  






Give me exact application where we should use low level recording?

6 Answers   CTS,


What is a recovery scenario?

0 Answers  


what r the send key commands in QTP why they r used

1 Answers  


What is API

1 Answers  


Hi, I got some difficulties in automating a web check box in a peoplesoft application. Let me explain the scenario, When clicked on a look up button in the application, it navigates to a new page with check boxes and respective options. Below is the source code for one check box and its option. <input type='checkbox' name='H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' id='H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' tabindex='34' value="Y" onclick="this.form.H1AU_BUNDLE_WRK_H1AU_SELECT_CH$chk$2.valu e=(this.checked?'Y':'N');submitAction_win0 (this.form,this.name);" /> </td> <td align='left' class='PSLEVEL1GRIDODDROW' > <span class='PSEDITBOX_DISPONLY' >$29 - $29 Cap with FREE Mobile</span> I want to parametrize using "$29 - $29 Cap with FREE Mobile". I am not aware of how to parametrize this. Currently I am parametrizing with 'H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' Can any one please help me out with this??/

0 Answers  


whare exactly we have to use functions and sub routain

0 Answers  


where we save the scripts created in one project?

6 Answers   IBM,


Categories