51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2619|回复: 1
打印 上一主题 下一主题

webdriver启动chrome报错

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2013-8-14 18:11:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
错误代码如下:
Starting ChromeDriver (v2.2) on port 17132
[DEBUG] [18:03:48] org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager - Get connection: {}->http://localhost:17132, timeout = 120000
[DEBUG] [18:03:48] org.apache.http.impl.conn.tsccm.ConnPoolByRoute - [{}->http://localhost:17132] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
[DEBUG] [18:03:48] org.apache.http.impl.conn.tsccm.ConnPoolByRoute - No free connections [{}->http://localhost:17132][null]
[DEBUG] [18:03:48] org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Available capacity: 2000 out of 2000 [{}->http://localhost:17132][null]
[DEBUG] [18:03:48] org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Creating new connection [{}->http://localhost:17132]
[DEBUG] [18:03:48] org.apache.http.impl.conn.DefaultClientConnectionOperator - Connecting to localhost:17132
[DEBUG] [18:03:48] org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: best-match
[DEBUG] [18:03:48] org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
[DEBUG] [18:03:48] org.apache.http.client.protocol.RequestTargetAuthentication - Target auth state: UNCHALLENGED
[DEBUG] [18:03:48] org.apache.http.client.protocol.RequestProxyAuthentication - Proxy auth state: UNCHALLENGED
[DEBUG] [18:03:48] org.apache.http.impl.client.DefaultHttpClient - Attempt 1 to execute request
[DEBUG] [18:03:48] org.apache.http.impl.conn.DefaultClientConnection - Sending request: POST /session HTTP/1.1
[DEBUG] [18:03:48] org.apache.http.wire - >> "POST /session HTTP/1.1[\r][\n]"
[DEBUG] [18:03:48] org.apache.http.wire - >> "Accept: application/json, image/png[\r][\n]"
[DEBUG] [18:03:48] org.apache.http.wire - >> "Content-Type: application/json; charset=utf-8[\r][\n]"
[DEBUG] [18:03:48] org.apache.http.wire - >> "Content-Length: 143[\r][\n]"
[DEBUG] [18:03:48] org.apache.http.wire - >> "Host: localhost:17132[\r][\n]"
[DEBUG] [18:03:48] org.apache.http.wire - >> "Connection: Keep-Alive[\r][\n]"
[DEBUG] [18:03:48] org.apache.http.wire - >> "[\r][\n]"
[DEBUG] [18:03:48] org.apache.http.headers - >> POST /session HTTP/1.1
[DEBUG] [18:03:48] org.apache.http.headers - >> Accept: application/json, image/png
[DEBUG] [18:03:48] org.apache.http.headers - >> Content-Type: application/json; charset=utf-8
[DEBUG] [18:03:48] org.apache.http.headers - >> Content-Length: 143
[DEBUG] [18:03:48] org.apache.http.headers - >> Host: localhost:17132
[DEBUG] [18:03:48] org.apache.http.headers - >> Connection: Keep-Alive
[DEBUG] [18:03:48] org.apache.http.wire - >> "{"desiredCapabilities":{"platform":"ANY","browserName":"chrome","chromeOptions":{"args":[],"extensions":[]},"version":"","chrome.switches":[]}}"
[DEBUG] [18:04:08] org.apache.http.wire - << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] [18:04:08] org.apache.http.wire - << "Content-Length:174[\r][\n]"
[DEBUG] [18:04:08] org.apache.http.wire - << "Content-Type:application/json; charset=utf-8[\r][\n]"
[DEBUG] [18:04:08] org.apache.http.wire - << "Connection:close[\r][\n]"
[DEBUG] [18:04:08] org.apache.http.wire - << "[\r][\n]"
[DEBUG] [18:04:08] org.apache.http.impl.conn.DefaultClientConnection - Receiving response: HTTP/1.1 200 OK
[DEBUG] [18:04:08] org.apache.http.headers - << HTTP/1.1 200 OK
[DEBUG] [18:04:08] org.apache.http.headers - << Content-Length:174
[DEBUG] [18:04:08] org.apache.http.headers - << Content-Type:application/json; charset=utf-8
[DEBUG] [18:04:08] org.apache.http.headers - << Connection:close
[DEBUG] [18:04:08] org.apache.http.wire - << "{"sessionId":"69814030c05e9d9ad84504e71a5eb774","status":100,"value":{"message":"chrome not reachable\n  (Driver info: chromedriver=2.2,platform=Windows NT 6.1 SP1 x86_64)"}}"
[DEBUG] [18:04:08] org.apache.http.impl.conn.DefaultClientConnection - Connection 0.0.0.0:58282<->127.0.0.1:17132 shut down
[DEBUG] [18:04:08] org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager - Released connection is not reusable.
[DEBUG] [18:04:08] org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Releasing connection [{}->http://localhost:17132][null]
[DEBUG] [18:04:08] org.apache.http.impl.conn.DefaultClientConnection - Connection 0.0.0.0:58282<->127.0.0.1:17132 closed
[DEBUG] [18:04:08] org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Notifying no-one, there are no waiting threads
Exception in thread "main" org.openqa.selenium.WebDriverException: chrome not reachable
  (Driver info: chromedriver=2.2,platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2013-8-15 17:30:58 | 只看该作者
启动写的有问题吧,把代码贴上来的干活
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-9-21 05:43 , Processed in 0.069410 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表