Hello, help me pls.
When i use perform method, it’s says WebDriverException: Message: Method has not yet been implemented.
Appium - 1.6.3
My capabilities:
self.driver = webdriver.Remote(
command_executor=‘http://0.0.0.0:4723/wd/hub’,
desired_capabilities={
‘app’: app,
‘appium-version’: ‘1.6.3’,
‘platformName’: ‘Android’,
‘platformVersion’: ‘5.1.1’,
‘deviceName’: ‘Nexus 7’,
‘appPackage’: pack,
‘appActivity’: act
})
Example of tap what i try:
self.driver.tap([(400, 400)])
and
touch = TouchAction(self.driver)
touch.press(x=400, y=400).release()
Both options lead to error:
debug] [MJSONWP] Calling AppiumDriver.performTouch() with args: [[{“action”:“tap”,“options”:{“y”:400,“x”:400,“count”:1}}],“fa7095a9-b90c-4710-b356-ad1f7b7698b4”]
[HTTP] ← POST /wd/hub/session/fa7095a9-b90c-4710-b356-ad1f7b7698b4/touch/perform 501 5 ms - 122
[HTTP] → DELETE /wd/hub/session/fa7095a9-b90c-4710-b356-ad1f7b7698b4 {}
[debug] [MJSONWP] Calling AppiumDriver.deleteSession() with args: [“fa7095a9-b90c-4710-b356-ad1f7b7698b4”]
[debug] [AndroidDriver] Shutting down Android driver
Error
Traceback (most recent call last):
File “/Users/admin/PycharmProjects/tests/andro_new.py”, line 49, in test_scroll
self.driver.tap([(400, 400)])
File “/Users/admin/PycharmProjects/tests/appium/webdriver/webdriver.py”, line 226, in tap
action.perform()
File “/Users/admin/PycharmProjects/tests/appium/webdriver/common/touch_action.py”, line 94, in perform
self._driver.execute(Command.TOUCH_ACTION, params)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py”, line 236, in execute
self.error_handler.check_response(response)
File “/Users/admin/PycharmProjects/tests/appium/webdriver/errorhandler.py”, line 29, in check_response
raise wde
WebDriverException: Message: Method has not yet been implemented