Micro Focus QTP (UFT) Forums
How to select the check box from the table (only scripts, no recording) - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to select the check box from the table (only scripts, no recording) (/Thread-How-to-select-the-check-box-from-the-table-only-scripts-no-recording)



How to select the check box from the table (only scripts, no recording) - Maheswaran - 07-28-2009

Hi ,
How to select the Check box from the table(it is a dinamic table), when i give the unique property value in the code it says ur application is the object more than one time. But i am taking unique value only.

conside 5 row are present with the personel name.
i am taking the Nmae of the second person.[/align]


Code:
------
Code:
Browser("name:=Chordiant Unified Desktop").Page("title:=Chordiant Unified Desktop").WebElement("innerhtml:=V_INT_41_Chargeback").Click

Result:
-------
The "[ WebElement ]" object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the object.


RE: How to select the check box from the table (only scripts, no recording) - supputuri - 07-28-2009

HI Maheswaran,

Please follow the below steps.
1) Click on the specified cell in the table.
2) Use child object concept (As the cell will convert to Check box when you click on the cell in table).
3) Now check on the check box.

Let me know if you need any more info.


RE: How to select the check box from the table (only scripts, no recording) - QTPian - 07-28-2009

Hi,

Use some other property like name or use multipe properties. This may solve your problem..
Code:
Browser(name:=B).Page(title:=P).webcheckbox("name:=name", "inner html:=inner html").Set "ON"
Thanks,