Appium [求助] 不知什么原因执行 adb devices 的时候出现乱码

liuyl · 2016年12月21日 · 最后由 liuyl 回复于 2016年12月21日 · 1688 次阅读

1.首先是运行脚本的时候报错,如下:
ft1.1: Traceback (most recent call last):
File "E:\meiyifen\productline\case_cashLoanMessage.py", line 10, in test_cashLoanMessage
change_user.changeUser().changeUser()
File "E:\meiyifen\warehouse\change_user.py", line 9, in changeUser
param.ock.firststeps()
File "E:\meiyifen\public\alivecheck.py", line 34, in firststeps
self.driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
File "C:\Python27\lib\site-packages\appium\webdriver\webdriver.py", line 36, in init
super(WebDriver, self).init(command_executor, desired_capabilities, browser_profile, proxy, keep_alive)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 92, in init
self.start_session(desired_capabilities, browser_profile)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 179, in start_session
response = self.execute(Command.NEW_SESSION, capabilities)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 234, in execute
response = self.command_executor.execute(driver_command, params)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 407, in execute
return self._request(command_info[0], url, body=data)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 477, in _request
resp = opener.open(request, timeout=self._timeout)
File "C:\Python27\lib\urllib2.py", line 429, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 447, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 407, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1228, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\Python27\lib\urllib2.py", line 1198, in do_open
raise URLError(err)
URLError:

2.执行 adb devices 的时候出现乱码,如下:
List of devices attached
6&27fcf041&0&0003 device

共收到 1 条回复 时间 点赞

重启电脑之后就好了 乱码也没了

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册