| || |
Windows Forms Settle
Does anyone know how to tell when a Windows Form has settled down?
For example after filling in a Form and pressing a button it takes different amount of time for the system to be ready to react to new input.
Sometimes there is wait time needed after double clicking on a row of a table. The system is thinking and then does something and then stops moving.
Is there a way to know when the Windows Form is done?
Usually your best best is checking to see if the results of that thinking have been reflected on the UI. Object becomes visible, enabled is true, isDisabled property becomes False, something like that.
I cannot find a set of global properties to look for.
I keep looking at the windows forms. Buttons are visible, enabled depending on the application rules.
if it were a linear script, I could keep checking these conditions on the next place where I intend to work with.
But I'm making a keyword harness that communicates with a single object on the screen. It does not know about others.
I wish there was some signal that could come back from Windows forms that tells me that it is done working.
When I did automation on SwfWindows I didn't come across anything similar to the:
capability Kevin, not sure if this would work in your framework but in previous keyword functions I had a keyword called WaitForObjectAttribute. This was called with 4 parameters:
In one line of the test you would say click a button, in the next line you would call the function above which would hold the test until the correct response was verified. If the response was not verified in x seconds the test would be failed.
Would this work for you?