TA的每日心情 | 擦汗 2017-1-5 08:50 |
---|
签到天数: 29 天 连续签到: 1 天 [LV.4]测试营长
|
2#
楼主 |
发表于 2016-11-30 11:32:11
|
只看该作者
报错:
C:\Python27\python.exe C:/text/apptest/appium1.py
{'platformVersion': '4.4.3', 'deviceName': 'HMB1AMBG', 'platformName': 'Android', 'appActivity': 'com.galanz.view.SplashActivity', 'appPackage': 'com.galanz.view'}
{u'width': 480, u'height': 854}
Traceback (most recent call last):
File "C:/text/apptest/appium1.py", line 34, in <module>
a = driver.find_element_by_name("G")
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 365, in find_element_by_name
return self.find_element(by=By.NAME, value=name)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 752, in find_element
'value': value})['value']
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 236, 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
selenium.common.exceptions.NoSuchElementException: Message: An element could not be located on the page using the given search parameters.
|
|