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

本地Chrome版本20使用Python Webdriver启动时出现加载缓慢问题,执行driver.get()指令后需等待1到2分钟才能返回。通过查看chromedriver.log发现存在长时间等待页面加载完成的现象。该问题疑似已存在一段时间,解决方案为更换Chrome版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

本地的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下,有时间再跟踪。

转载于:https://my.oschina.net/u/58432/blog/89013

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值