chromedriver: Waiting for all views to stop loa...

本地的chrome是20的版本,用webdriver的python binding把chrome启动起来,在执行driver.get()时,要1,2分钟之后才能够返回,对应的chromedriver.log如下。


[1.311][FINE]:      Command received (/session/5c706f91eef0f0e59cc26d98a140518b/url) with params {
   "sessionId": "5c706f91eef0f0e59cc26d98a140518b",
   "url": "http://10.24.72.59:8080/wpa/wpa.html"

}

[1.312][FINER]:     Waiting for all views to stop loading... 

[1.313][FINER]:     Done waiting for all views to stop loading

[72.038][FINER]:    Waiting for all views to stop loading... 

[72.047][FINER]:    Done waiting for all views to stop loading

[72.047][FINE]:     Command finished (/session/5c706f91eef0f0e59cc26d98a140518b/url) with response { 

   "sessionId": "5c706f91eef0f0e59cc26d98a140518b",
   "status": 0,
   "value": {
   }

}

[72.062][FINE]:     Command received (/session/5c706f91eef0f0e59cc26d98a140518b/cookie) 

[72.063][FINER]:    Waiting for all views to stop loading...

[72.070][FINER]:    Done waiting for all views to stop loading 


具体原因不是很清楚,从googlecode上看,这个坑已经埋了有段时间了。https://code.google.com/p/chromedriver/issues/detail?id=121
暂时的解决方案就是更换chrome的版本,先Mark下,有时间再跟踪。

你可能感兴趣的:(webdriver,ChromeDriver)