I make self.driver.press_keycode(32)
request from appium python client to Windows Server 2016 with WinAppDriver. It raises:
selenium.common.exceptions.WebDriverException: Message: Command not recognized: POST: /session/0EE8D504-0E79-418E-AA9F-5D079657AD12/appium/device/press_keycode
WinAppDriver shows:
==========================================
POST /session/0EE8D504-0E79-418E-AA9F-5D079657AD12/appium/device/press_keycode HTTP/1.1
Accept: application/json
Accept-Encoding: identity
Connection: keep-alive
Content-Length: 68
Content-Type: application/json;charset=UTF-8
Host: 116.202.1.50:4723
User-Agent: appium/python 0.46 (selenium/3.141.0 (python linux))
{"keycode": 32, "sessionId": "0EE8D504-0E79-418E-AA9F-5D079657AD12"}
### WinAppDriver::CommandHandler::Appium::HandleCommandAsMidPoint - Command is not recognized
HTTP/1.1 404 Not Found
Content-Length: 164
Content-Type: application/json
{"status":9,"value":{"error":"unknown command","message":"Command not recognized: POST: /session/0EE8D504-0E79-418E-AA9F-5D079657AD12/appium/device/press_keycode"}}
According to docs endpoint seems to be correct: http://appium.io/docs/en/commands/device/keys/press-keycode/index.html
So how to press Space?
Thanks!