Sending KeyEvent in C#

Hello,

I’m using dot-net-appium to connect to AppiumServer 10.9.72 and everything works fine but I cannot find the way to send a key event to an Android device.

I’m trying to send the KeyEvent_SwitchAPP but it doesn’t work.

anyone knows how to do it?

thx.

can you attach the stacktrace and exception that appears?
meanwhile, you can try this way

driver.executeScript("client:client.deviceAction("Recent apps"))

https://docs.experitest.com/display/public/SA/DeviceAction

I just tried this command and it desn’t work, but yesterday I tried again and now it works with both Android and iOS devices :astonished: .

It doesn’t throw any exception, just sended the keystrokes to the device

great :slight_smile:

maybe Appium Studio woke up on the wrong leg that other day :wink: