Skip to content
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

With automaton 1.3.2 can not click on an item of a table but with version 1.2.3 it works fine. #49

Open
jjdsg opened this issue Jun 17, 2016 · 3 comments
Labels

Comments

@jjdsg
Copy link

jjdsg commented Jun 17, 2016

We have a table with different columns. We create an item and refreshed the table to show the information of the item. We then try to do a right click in the item to show a contextual menu. In version 1.0 of Automaton (also tested with 1.2.3) we locate the item by searching for the text of the column in the screen. However, with the version 1.3.2 the item is not found and our test crashes. The error message is GuiItem not found.

This table is inside a Frame and not inside a Dialog, but we don't think that this could be the problem.

@renatoathaydes
Copy link
Owner

renatoathaydes commented Jun 19, 2016

Hi @jjdsg , Sorry but I cannot reproduce this problem. Look at the test I wrote (commit link ). Can you provide a failing test (maybe modify my test and submit a PR)?

@renatoathaydes
Copy link
Owner

If you are using Swing-Selectors to select components, perhaps you just need to refresh the cache after you change the table. See the docs.

@jjdsg
Copy link
Author

jjdsg commented Jun 22, 2016

With version 1.2.3, I can do a FakeComponent.getLocationOnScreen(). It returns a valid Point but with version 1.3.2 with the same code it throws an IllegalComponentStateException. Any idea?, I think that something has change between both versions finding the components inside a table...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants