Traceback (most recent call last):
File “C:\Users\QA\PycharmProjects\BantasyTestSuite\BantasyTestSuite_modified_new_design.py”, line 2058, in runTest
touch.flick_element(entry_fee_filter_first, swipe_value, 0, 0).perform()
File “C:\Python27\lib\site-packages\selenium\webdriver\common\touch_actions.py”, line 46, in perform
action()
File “C:\Python27\lib\site-packages\selenium\webdriver\common\touch_actions.py”, line 183, in
‘speed’: int(speed)}))
File “C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py”, line 196, in execute
self.error_handler.check_response(response)
File “C:\Python27\lib\site-packages\appium\webdriver\errorhandler.py”, line 29, in check_response
raise wde
WebDriverException: Message: unknown error: ‘speed’ must be a positive integer
(Session info: chrome=44.0.2403.117)
(Driver info: chromedriver=2.15.322455 (ae8db840dac8d0c453355d3d922c91adfb61df8f),platform=Mac OS X 10.10.5 x86_64)
I have not worked on Python but following steps should accomplish this:
Try to get the context for web view since your app is hybrid. So you might need to switch the driver context on the fly depending upon you are using native part of web view in the app
Scrolling needs source and destination points (Point Class in java). So you need to swipe from one point to point 2 to scroll up or down. Touch class is also used for the same purpose. There is swipe method which can help you out in scrolling.
Traceback (most recent call last):
File “appium_test.py”, line 27, in
action.press(el).move_to(x=10, y=-500).release().perform()
File “C:\Python27\lib\site-packages\appium\webdriver\common\touch_action.py”, line 94, in perform
self._driver.execute(Command.TOUCH_ACTION, params)
File “C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py”, line 196, in execute
self.error_handler.check_response(response)
File “C:\Python27\lib\site-packages\appium\webdriver\errorhandler.py”, line 24, in check_response
super(MobileErrorHandler, self).check_response(response)
File “C:\Python27\lib\site-packages\selenium\webdriver\remote\errorhandler.py”, line 103, in check_response
status = value[‘status’]
TypeError: string indices must be integers