在Chrome中使用Selenium WebDriver的自动化执行速度太慢36 [英] Automation execution is too slow in chrome using selenium webdriver 36

查看:2406
本文介绍了在Chrome中使用Selenium WebDriver的自动化执行速度太慢36的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前使用的是chrome 32,速度非常快.但是升级到36后,它非常慢.即使在location元素之后,执行sendKeys指令也要花费一秒钟以上的时间.

Earlier I was using chrome 32, which was very fast. But after upgrading to 36, it is very slow. It is taking more than a second to execute sendKeys instruction even after location element.

任何帮助将不胜感激.

推荐答案

如果您在PC上使用64位OS体系结构,答案可能如下:据我所知,因为Selenium会在32位和64位模式(这是非常慢的操作).仅32位支持ChromeDriver.我也有与IE驱动程序相同的问题.

The answer can be the following if you use 64-bit OS architecture on your PC - as far as I remember is because Selenium performs switching between 32-bit and 64-bit mode (which is very slow operation). ChromeDriver was supported only in 32-bit. I had same issues with IE driver too.

更新:

Update:

接下来要检查的是chrome中的代理和网络设置尚未更改.在乞讨中,我考虑了扩展和附加组件,但是Selenium每次都会提高 clean 实例.至于#36速度缓慢-检查google chrome上的开发人员线程,您会看到问题已经持续了6个月之久,并且也正在影响跨平台.一种解决方案是尝试禁用硬件加速....对我来说,这对我的笔记本电脑而言是十倍的改进. 要禁用它...在地址栏中键入"chrome:settings",单击高级设置",然后取消选中系统"标题下的使用硬件加速(如果可用)".关闭所有打开的Chrome浏览器实例,然后重新启动Chrome.

Next thing to check then is that the proxy and network settings in chrome have not been altered. In the begging I considered extensions and add-ons, but Selenium raises clean instance each time. As to #36 being slow - check the dev threads on google chrome, you will see the issue has been ongoing for well over 6mths and is affecting cross-platforms too. And one solution is try disabling hardware acceleration.... it was a tenfold improvement for me on my laptop. To disable it... type "chrome:settings" in the address bar, click Advanced Settings, then uncheck "Use hardware acceleration when available" under the System header. Close all open Chrome browser instances and restart Chrome.

这篇关于在Chrome中使用Selenium WebDriver的自动化执行速度太慢36的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆