-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Hi author, I follow your book trying to create a SWTBot test case. For the first time, it takes a very long time to run, but in the end it would pass all test cases.
However when I try to run the same code for second time, only testUI() will pass, the other three will have org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException: The widget was null.
I though I have typo somewhere so I download the sample code from github, but the problem still exist. In the book you worte
If one is not currently visible, it polls (every 500 milliseconds by default) until one is found or the default timeout period (5 seconds) ends when a WidgetNotFoundException is thrown
But I don't see why the first time all test cases will pass but not the second time.