测试积点老人 发表于 2019-8-22 11:14:43

[IOS] appium 中有些方法不好用,求鉴定

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.'

你好浮戈 发表于 2019-8-23 09:22:47

不知道 没搞过

qqq911 发表于 2019-8-23 10:37:57

没试过

litingting0214 发表于 2019-8-23 11:38:52

还没有用过

libingyu135 发表于 2019-8-23 11:42:58

昂,这个没怎么

jingzizx 发表于 2019-8-23 12:23:58

真机有没有问题
页: [1]
查看完整版本: [IOS] appium 中有些方法不好用,求鉴定