Forum Discussion
jmcwhinney
11 years agoContributor
I started noticing that even my workaround method wasn't working all the time.
After adding a time delay between checking the subcomponents and calling .FindChild, that seemed to fix it.
So then I tried the same thing with .Refresh() and that worked too.
eg:
MyObject.Refresh();
aqUtils.Delay(1000);
MyObject.FindChild("JavaFullClassName","javax.swing.JViewport");
Is there any better way to wait for the completion of .Refresh() rather than the above workaround??
I would have expected the application to automatically wait until the refresh had completed before moving to the next line of code.
Thanks!
- James
After adding a time delay between checking the subcomponents and calling .FindChild, that seemed to fix it.
So then I tried the same thing with .Refresh() and that worked too.
eg:
MyObject.Refresh();
aqUtils.Delay(1000);
MyObject.FindChild("JavaFullClassName","javax.swing.JViewport");
Is there any better way to wait for the completion of .Refresh() rather than the above workaround??
I would have expected the application to automatically wait until the refresh had completed before moving to the next line of code.
Thanks!
- James
Related Content
- 9 years ago
Recent Discussions
- 7 hours ago