JavaTable(...).ClickCell stop working with new java version 1.6.14 - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: JavaTable(...).ClickCell stop working with new java version 1.6.14 (/Thread-JavaTable-ClickCell-stop-working-with-new-java-version-1-6-14) |
JavaTable(...).ClickCell stop working with new java version 1.6.14 - huaqtp - 07-13-2011 I have a script (using descriptive programing) to test Java Swing application. It was running fine until we upgrade java to 1.6.14. This is the part of the script that doesn't work anymore: Code: JavaWindow(WindowObject).JavaTable(TableObject).ClickCell 0,1 When I run with debug mode, I can see QTP found the table object and click on the cell but it just in a brief second and didn't stay focus on the cell. So when the second command run, it can't entery the text to the cell. Does anyone have seen this strange behaver? Your help is highly appreciated!! Thanks RE: JavaTable(...).ClickCell stop working with new java version 1.6.14 - rajpes - 07-13-2011 JavaWindow(WindowObject).Type "test" 'is this line correct?did it work in ur previous version? RE: JavaTable(...).ClickCell stop working with new java version 1.6.14 - huaqtp - 07-13-2011 Yes, that line is correct. The problem actually happened at first line "click". It clicked the cell, but the cursor didn't stay and that is why it didn't know where to "type" the text "test". Also, originally I have script like this "JavaWindow(WindowObj).JavaTable(TableObj).SetCellData #row, #col, Text, but it failed with new java update on all JavaTables. So I found the workaround to change this one line code to the two line code as I posted. It works for most JavaTable except this one. Thank you for your reply. RE: JavaTable(...).ClickCell stop working with new java version 1.6.14 - rajpes - 07-15-2011 try the method "SelectRow" instead of click cell. See what method is generated in recording RE: JavaTable(...).ClickCell stop working with new java version 1.6.14 - guin.anirban - 07-16-2011 Before inserting any value you can activate that particular cell. |