I have spent 2 days trying to longpress
This is my code
source = self.driver.find_element_by_id('caption_text_view')
action = TouchAction(self.driver)
action.long_press(source).wait(1000).release()
action.perform()
I get this error
Error
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/case.py”, line 59, in testPartExecutor
yield
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/case.py”, line 605, in run
testMethod()
File “/Users/macbookpro/Documents/PyCharm/Appium/test.py”, line 74, in testUntitled
action.perform()
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/appium/webdriver/common/touch_action.py”, line 104, in perform
self._driver.execute(Command.TOUCH_ACTION, params)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py”, line 308, in execute
self.error_handler.check_response(response)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/appium/webdriver/errorhandler.py”, line 29, in check_response
raise wde
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/appium/webdriver/errorhandler.py”, line 24, in check_response
super(MobileErrorHandler, self).check_response(response)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py”, line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error ()