Forum Discussion
When you validate by clicking the first button, does the UI show at least a label somewhere that says "...validating" or anything at all on the UI so that it doe snot leave you hanging for 2 to 5 seconds?
If the answer is "No" then you have a bug report to file against R&D, as it is not acceptable nowadays to hang the system for 2 to 5 seconds without telling the user UI wise that you in the process of validating.
If there is a label somewhere on the UI stating that the validating is in progress then your the WaitProperty() command in JScript on the second button object to wait for the label text to no be available anymore to continue with the clicking of the second button
This way you don't have to sleep or delay for a number of seconds but wait for an indication from the label to disapear to move on with life.
Hope that helps
-Lino
In addition to what LinoTadros suggests, if the Post button isn't in existance or such, you can also use WaitChild or WaitAliasChild as methods to actually wait for the child object to Exist before proceeding. These "Wait" methods (documented https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/waiting-process-or-window-activation.html and https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/waiting-property-value.html and https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/waiting-state-changes.html) are the preferred ways to a hard sleep. Only if none of these works, would I put in a hard sleep.
Related Content
Recent Discussions
- 7 hours agogdave
- 10 hours agopraveenskg
- 4 days agokyork