Forum Discussion
You could use a while loop, This one is writen in JavaScript but should be about the same:
I added a check that after a few checks it returns
WaitProperty method will pause execution until the specified object property achieves the specified value or until the specified timeout elapses. For example, waiting until the property value Visible becomes False.
object.WaitProperty("Visible", "false", 30000);
- MW_Didata13 days agoRegular Contributor
if the Object stops existing there is no visible property, does it still work?
- Hassan_Ballan13 days agoFrequent Contributor
No you will get error, object must exist before you can check any property value.
- rraghvani13 days agoChampion Level 3
No. You'll have to adjust the code to suit your needs, but this method works perfectly for my web testing.
I use the code against a web "process dialog" - that's to delay the tests until the dialog appears, and then delay the test until the dialog disappears.
- JDR250012 days agoFrequent Contributor
In my experience this approach will fail with an error that the object doesn't exist. You can't check a property of an item that doesn't exist. If the window still exists, but the Visible property is False then it should work,
Related Content
- 9 years ago
- 6 years ago
- 2 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago