TA的每日心情 | 无聊 昨天 09:08 |
---|
签到天数: 531 天 连续签到: 1 天 [LV.9]测试副司令
|
1测试积点
1 python driver.hide_keyboard() 运行于模拟器上,该方法不起作用,大家有用过么?
2
- sleep(5)
- origin_el = self.driver.find_element_by_name('Buttons, Various uses of UIButton')
- destination_el = self.driver.find_element_by_name('Transitions, Shows UIViewAnimationTransitions')
- self.driver.scroll(origin_el, destination_el)
复制代码 使用时会报错,如下:- Traceback (most recent call last):
- File "ios_uicatalog.py", line 46, in test_text_fields
- self.driver.scroll(origin_el, destination_el)
- File "build/bdist.macosx-10.9-intel/egg/appium/webdriver/webdriver.py", line 169, in scroll
- action.press(origin_el).move_to(destination_el).release().perform()
- File "build/bdist.macosx-10.9-intel/egg/appium/webdriver/common/touch_action.py", line 94, in perform
- self._driver.execute(Command.TOUCH_ACTION, params)
- File "/Library/Python/2.7/site-packages/selenium-2.42.1-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 173, in execute
- self.error_handler.check_response(response)
- File "build/bdist.macosx-10.9-intel/egg/appium/webdriver/errorhandler.py", line 29, in check_response
- raise wde
- WebDriverException: Message: u'An error occurred while executing user supplied JavaScript.'
复制代码
|
|