-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Tree Node Popup Menu Item Should Be {Enabled | Disabled}" fails if screen is locked #44
Comments
Interesting. Maybe we need to check if there are any other ways to close a popup. I dont have too much time right now to spend on this project, so it might take a while before I get to fix this. We do welcome pull requests and suggestions for fixes though! |
Thanks for your answer. We finally forgot about this problem, because after a modification of the software we didn't need this keyword anymore. I doubt I could come with a fix anytime soon, as I probably lack the required in-depth knowledge of Swing to do so. Anyway, thank you for your excellent library. We've implemented a very complete test suite with it & RobotFramework, without any major problems (other than the reported one). |
Fixed in 02d63f4 |
Thanks! |
The two keywords above seem to fail (at least, on SwingLibrary 1.6.0 under Linux) if the screen has been locked (i.e. due to screensaver being triggered) during a test execution. The keyword fails with the following error message:
"TestFailedException: caused by: java.lang.RuntimeException: No popup responded to POPUP_MASK at (87,255) on 'configuration tree' (JTree)"
A little research suggests that it might be related to the fact that implementation for these keywords attempts to close the popup menu (after checking item status) by sending an ESC(27) key. This is probably failing due to screen being locked, but we can't tell for sure.
Affected file / line:
org.robotframework.swing.keyword.tree.TreeNodePopupUpKeyWords.java:103
Kind regards,
Eduard Huguet
The text was updated successfully, but these errors were encountered: