Forum Discussion
Thank you for the response. This does not seem to help though... I have the window to be detected open and objectspy does its job and then I'm trying to execute a simple function:
Aliases.Workstation.popupDialog.Static.WaitProperty("Visible", true, 5000); Log.Message(Aliases.Workstation.popupDialog.Static.WndCaption);
Still, it returns nothing, while objectspy sees the popup text properly...
Any other ideas?
IThe way, sometimes, objects are made visible/invisible is that the parent (in this case the popupDialog) may not be visible but the child object is (Visible property set to true).
Change the first line to do the waitproperty on popupDialog, not on static, and see what happens.
- _Monika5 years agoNew Contributor
I did what you recommended, but while TC sees the window no problem, it still returns nothing from the popup text...
This is what the program sees during run/debug, what object spy sees is the same as above.
- TanyaYatskovska5 years agoSmartBear Alumni (Retired)
How about refreshing the object tree before accessing it?
Aliases.Workstation.popupDialog.Refresh()
- _Monika5 years agoNew Contributor
Tried doing that and even delaying after the refresh, still the same thing:
Related Content
Recent Discussions
- 2 days agoGane195