|
错误代码如下:
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) |
|