Issue 197 in robotframework-swinglibrary: "Type Into Table Cell" keyword holds down Enter key forever

4 views
Skip to first unread message

robotframewor...@googlecode.com

unread,
Aug 22, 2011, 9:59:43 AM8/22/11
to robotframework...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 197 by geoff.ba...@gmail.com: "Type Into Table Cell" keyword
holds down Enter key forever
http://code.google.com/p/robotframework-swinglibrary/issues/detail?id=197

We are using SwingLibrary 1.1.3, JVM 1.6.0.26 and RHEL5 Linux.

We have noticed that using the "Type Into Table Cell" keyword results in
the Enter key being pressed and never released, which can have some
unexpected effects... everything one does subsequently in a test is
essentially done with the Enter key held down.

I believe the reason for this is that Jemmy double clicks the cell, types
in the text, and then tries to press Enter. Unfortunately, it assumes that
the KEY_PRESSED and KEY_RELEASED events should be generated on the same
widget, whereas in the case of the table cell edit, the KEY_PRESSED event
causes editing to stop and the JTextField to go away. This means the
KEY_RELEASED event is never generated. (If you do this by hand, Swing emits
the KEY_RELEASED event on the JTable).

See the KeyEventDriver in Jemmy for the code I'm referring to here.


robotframewor...@googlecode.com

unread,
Apr 24, 2012, 4:20:09 PM4/24/12
to robotframework...@googlegroups.com
Updates:
Status: Done
Owner: janne.t....@gmail.com

Comment #8 on issue 197 by janne.t....@gmail.com: "Type Into Table

Fixed this by always generating the release event, as in the attached
testscript.

https://github.com/robotframework/SwingLibrary/commit/b0a62e342293eb89dad413d2d6465108537b3c43

robotframewor...@googlecode.com

unread,
May 4, 2012, 6:40:12 AM5/4/12
to robotframework...@googlegroups.com
Updates:
Labels: Target-1.2.1

Comment #9 on issue 197 by janne.t....@gmail.com: "Type Into Table
(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages