Ask a Question

Connected Application C# Keys method

Valença
Occasional Contributor

Connected Application C# Keys method

Hello, 

 

I created a windows form application (connected application) and im trying to execute the code below:

Sys["Process"]("notepad")["Window"]("Notepad")["SetFocus"]();
Sys["Process"]("notepad")["Window"]("Notepad")["Window"]("Edit")["Click"](459, 242);
Sys["Process"]("notepad")["Window"]("Notepad")["Window"]("Edit")["Keys"]("123");

The first and second line run, but i got an exception when trying to send the Keys method.

 

The exception that is thrown by methods invoked through reflection.

 

How can i use Keys method on connnected application? 

If i execute the code on testcomplete, it runs all lines.

10 REPLIES 10
TanyaYatskovska
SmartBear Alumni (Retired)

Hi,

 

Thanks for the help, Lino!

 

@Valença,

I recommend that you contact our Support Team to investigate this behavior.

https://support.smartbear.com/message/?prod=TestComplete

 

 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



cancel
Showing results for 
Search instead for 
Did you mean: