webdriver启动chrome报错
错误代码如下:Starting ChromeDriver (v2.2) on port 17132
org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager - Get connection: {}->http://localhost:17132, timeout = 120000
org.apache.http.impl.conn.tsccm.ConnPoolByRoute - [{}->http://localhost:17132] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
org.apache.http.impl.conn.tsccm.ConnPoolByRoute - No free connections [{}->http://localhost:17132]
org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Available capacity: 2000 out of 2000 [{}->http://localhost:17132]
org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Creating new connection [{}->http://localhost:17132]
org.apache.http.impl.conn.DefaultClientConnectionOperator - Connecting to localhost:17132
org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: best-match
org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
org.apache.http.client.protocol.RequestTargetAuthentication - Target auth state: UNCHALLENGED
org.apache.http.client.protocol.RequestProxyAuthentication - Proxy auth state: UNCHALLENGED
org.apache.http.impl.client.DefaultHttpClient - Attempt 1 to execute request
org.apache.http.impl.conn.DefaultClientConnection - Sending request: POST /session HTTP/1.1
org.apache.http.wire - >> "POST /session HTTP/1.1[\r][\n]"
org.apache.http.wire - >> "Accept: application/json, image/png[\r][\n]"
org.apache.http.wire - >> "Content-Type: application/json; charset=utf-8[\r][\n]"
org.apache.http.wire - >> "Content-Length: 143[\r][\n]"
org.apache.http.wire - >> "Host: localhost:17132[\r][\n]"
org.apache.http.wire - >> "Connection: Keep-Alive[\r][\n]"
org.apache.http.wire - >> "[\r][\n]"
org.apache.http.headers - >> POST /session HTTP/1.1
org.apache.http.headers - >> Accept: application/json, image/png
org.apache.http.headers - >> Content-Type: application/json; charset=utf-8
org.apache.http.headers - >> Content-Length: 143
org.apache.http.headers - >> Host: localhost:17132
org.apache.http.headers - >> Connection: Keep-Alive
org.apache.http.wire - >> "{"desiredCapabilities":{"platform":"ANY","browserName":"chrome","chromeOptions":{"args":[],"extensions":[]},"version":"","chrome.switches":[]}}"
org.apache.http.wire - << "HTTP/1.1 200 OK[\r][\n]"
org.apache.http.wire - << "Content-Length:174[\r][\n]"
org.apache.http.wire - << "Content-Type:application/json; charset=utf-8[\r][\n]"
org.apache.http.wire - << "Connection:close[\r][\n]"
org.apache.http.wire - << "[\r][\n]"
org.apache.http.impl.conn.DefaultClientConnection - Receiving response: HTTP/1.1 200 OK
org.apache.http.headers - << HTTP/1.1 200 OK
org.apache.http.headers - << Content-Length:174
org.apache.http.headers - << Content-Type:application/json; charset=utf-8
org.apache.http.headers - << Connection:close
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)"}}"
org.apache.http.impl.conn.DefaultClientConnection - Connection 0.0.0.0:58282<->127.0.0.1:17132 shut down
org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager - Released connection is not reusable.
org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Releasing connection [{}->http://localhost:17132]
org.apache.http.impl.conn.DefaultClientConnection - Connection 0.0.0.0:58282<->127.0.0.1:17132 closed
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) 启动写的有问题吧,把代码贴上来的干活
页:
[1]