Is it possible to use text without an object?
I have the following problem: Im am automating a WPF- GUI. Here I have a PopUp where I can enter a text. The problem is, that this PopUp dissapears as soon as the focus is lost. So no way to see all objectmembers. During runtime I am able to open the PopUp and to find this object and to set the focus on it. But I am not able to insert a text. So my question is, if it is possible to make a Key- Event or something where I can type a text or use the keyboard without referencing to an object?
Solved! Go to Solution.
a) Sys.Desktop.Keys() sends keys sequence to the active window;
b) Try to use Object Spy in the 'point-and-fix' mode (https://support.smartbear.com/testcomplete/docs/testing-with/exploring-apps/object-spy/working-with....)
/Alex [Community Champion]
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
a) Perfect, "Sys.Desktop" works. Thank you for that.
b) Object spy does not help in this case. I can fix the object, but as soon as the focus is lost the PopUp is closed and I can see no further informations about this object (childobjects, Fields and so on).
But anyway it works now.