Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JavaTable(...).ClickCell stop working with new java version 1.6.14
#1
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 JavaWindow(WindowObject).Type "test"

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
Reply
#2
JavaWindow(WindowObject).Type "test" 'is this line correct?did it work in ur previous version?
Reply
#3
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.
Reply
#4
try the method "SelectRow" instead of click cell.
See what method is generated in recording
Reply
#5
Before inserting any value you can activate that particular cell.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SetCellData issue with JavaTable shashidtj 2 3,370 09-27-2017, 12:55 AM
Last Post: shashidtj
  vb script to stop execution of functions if conditions fail visitjaga 1 8,023 12-05-2013, 12:26 AM
Last Post: ravi.gajul
  QTP10- Javatable Checkbox Issue alokgupta010 1 3,180 07-09-2012, 10:44 AM
Last Post: sshukla12
  Cell Editable or Not in JavaTable anshul.grg07 0 3,030 05-18-2011, 01:00 AM
Last Post: anshul.grg07
  How to verify list box values present in JavaTable? dineshb 4 7,973 05-13-2011, 12:48 AM
Last Post: mitch

Forum Jump:


Users browsing this thread: 1 Guest(s)