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
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 |
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 |
WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?
Give me diffrent script in QTP for Webpage(Java and .Net),WindowsBased Applications,Java application,.Net application...
How to get line numbers in your editor in expert view?
How to create log file in qtp?
What is diff betwee datatable.importsheet "path" and datatable.import
Give me exact application where we should use low level recording?
What is a recovery scenario?
what r the send key commands in QTP why they r used
What is API
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??/
whare exactly we have to use functions and sub routain
where we save the scripts created in one project?