Closed Bellama1 closed 3 years ago
From SwingLibrary's perspective the button is pushed, so it doesn't make sense to FAIL the keyword just because there is a problem with the application under test. What you can try is to use one of the other keywords to verify if the event took place successfully by verifying how the app responded to the button push. e.g. after pushing the button, if a save dialog should appear, you should check that a dialog with specific title is visible, or the message save successful has appeared, etc. This of course depends on how the app was implemented.
Closing as this isn't a issue with SwingLibrary itself. For questions and support about the library you can post on robotframework support forums or Slack channel.
Thanks for your reply. I will find another way to make it.
Recently I run keyword: "push button" . Keyword is passed but button is not pushed and the log shows exception message. The reason is application has bug when push button and an exception is throw out. From my side, I want the keyword fails. How can I do?