I had some problems with my java swing program because sometimes some component (window, button, tableCell, etc.) was still loading and then my test failed.
I have tried with different timeouts using:
- sleep command,
- increasing Start options in Step properties-->Timing,
- increasing Maximum time to wait for target option in Step properties-->Swing Properties-->Target,
- increasing Default step timeout option in General tab,
- I have also checked the Wait for target to bi visible and enabled options,
but sometimes iTest still has problems with finding the component.
I have laso had a case where I saw the component but iTest didn't and failed.
How do you guys check if some component is visible or not? Is there anything like try and catch for some exception in case when component is not found?
Is there any other option that I have missed?
Thank you for your answers.