Combo Box-es in table - 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: Combo Box-es in table (/Thread-Combo-Box-es-in-table) |
Combo Box-es in table - ppero16 - 11-18-2009 Hi all! I'm using QTP with Java plugin to test Java applications. The problem is that in one JTable I have Combo box-es (one Combo Box in every cell of one column) and they were not learned in Object Repository. I solved part of that problem by adding table toolkit under "Controls to identify as separate test object". By adding that I could record on Combo Boxes, but it wouldn't be any difference between them and I would still get error that object cannot be identified when running the test... I've also tried this: Code: Set table = JavaWindow("Element").JavaTable("BoardsTable").Object Thanks for your help! RE: Combo Box-es in table - ppero16 - 11-20-2009 Could somebody please help me? I've tried everything I could think of but still can't find solution... RE: Combo Box-es in table - sreekanth chilam - 11-20-2009 Hi , Try as given below. Code: JavaWindow("Element").JavaTable("BoardsTable").ChildItem(row,col,"JavaList",0).Select "4" RE: Combo Box-es in table - ppero16 - 11-20-2009 Hi, thanks for your reply! This doesn't work, and I think because ChildItem function doesn't exist for JavaTable, it is for SAPTable. Basically, my problem is that I can't learn Combo boxes in object repository. If I try to learn combo box in JTable it only sees it (and learns) as JavaTable and not JavaList... I've spend a lot of time trying to figure that out and would appreciate any help I can get! RE: Combo Box-es in table - sreekanth chilam - 11-21-2009 HI Pero, Yes, you are correct. ChildItemmethod is not applicable for JavaTable,OracleTable,SwfTable objects so on so forth and it is applicable for SAPTable(SAP Web),WEBTables. Hope you have selected "Context Sensitive" radiobutton from Tools > Options > Java tab > Advanced Button > Advanced Java > Record & Run Settings > Under Java Table Record Mode.(Since SetCellData, SelectRow so on could not be used when the JavaTable record mode is set to "Analog"). RE: Combo Box-es in table - ppero16 - 11-23-2009 Hi Chilam, Yes, I did that, and when I record on Combo boxes I get this: Code: JavaWindow("192.168.40.124 - RXI Element").JavaTable("BoardsTable").SelectRow "#10" RE: Combo Box-es in table - ppero16 - 11-24-2009 Please, please help me! RE: Combo Box-es in table - quark76 - 05-11-2011 Hi The post is old but i have the same problem. The QTP 11 has some supplementary option in the JAVA area of menu tools/option. There are some options in which you can set how java object are detected in a table cell. You can set to see the object as separate object. Maybe this is the solution or at list part of the solution |