Guys please help me, I got stuck and I am going insane…
I am operating on hybrid app, therefore I am switching my context to WEBVIEW
I need to press and hold a button, so I do:
from appium.webdriver.common.touch_action import TouchAction
self.pttAction = TouchAction(self.drv)
self.pttAction.press(self.element).perform()
and I got:
info: --> POST /wd/hub/session/381f1689-ef8b-4605-bcab-122d4f9b545f/touch/perform {“sessionId”:“381f1689-ef8b-4605-bcab-122d4f9b545f”,“actions”:[{“action”:“press”,“options”:{“y”:null,“x”:null,“element”:“0.025453001260757
446-6”}}]}
info: JSONWP Proxy: Proxying [POST /wd/hub/session/381f1689-ef8b-4605-bcab-122d4f9b545f/touch/perform] to [POST http://127.0.0.1:9515/wd/hub/session/b5d5c6dcb04f9357888e1134a9b3cd1a/touch/perform] with body: {“sessionId”
:“381f1689-ef8b-4605-bcab-122d4f9b545f”,“actions”:[{“action”:“press”,“options”:{“y”:null,“x”:null,“element”:“0.025453001260757446-6”}}]}
error: Could not proxy command to remote server. Original error: 404 - unknown command: session/b5d5c6dcb04f9357888e1134a9b3cd1a/touch/perform