maxtester
7 years agoContributor
Is it possible to use text without an object?
Hi all,
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?
Hi,
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.html#PickingObjects)