简体   繁体   English

Firefox更新后,Selenium WebDriver无法加载页面

[英]Selenium WebDriver not loading page after Firefox update

I had a problem with Selenium (v. 2.48.0) and Java WebDriver after upgrading Firefox to version 45 (from 44) - it didn't load the page, it's freezing on Firefox start screen. 将Firefox升级到版本45(从44)后,我遇到了Selenium(v。2.48.0)和Java WebDriver问题-它没有加载页面,在Firefox的开始屏幕上冻结了。

I know it is known issue, I have to upgrade my Selenium version to cooperate with new Firefox and it would be fine. 我知道这是一个已知问题,我必须升级Selenium版本才能与新的Firefox配合使用,这样就可以了。
However, it isn't the solution for me, because I have to keep compatibility with older Firefox. 但是,这不是我的解决方案,因为我必须保持与旧版Firefox的兼容性。
So I installed Firefox version 44 which was fine with my Selenium version before, but now the page isn't loading, same as with new version of Firefox. 因此,我安装了Firefox版本44,该版本以前与我的Selenium版本都很好,但是现在该页面无法加载,与新版本的Firefox相同。

Has anyone have the same problem and somehow solved it? 有谁遇到过同样的问题并且以某种方式解决了吗?

You need to upgrade selenium to the currently latest 2.53 version to avoid compatibility issues. 您需要将硒升级到当前最新的2.53版本,以避免兼容性问题。

Or, if for some reason, you cannot upgrade, use an older Firefox version (38 or older). 或者,如果由于某种原因而无法升级,请使用较旧的Firefox版本 (38或更早版本)。

You need to make sure that even if you downgraded to 44 it doesn't automatically update itself back to 45 after installing. 您需要确保即使降级到44,安装后也不会自动将其自身更新回45。 Firefox automatically updates itself unless you uncheck that option from Options / Advanced / Update. 除非您从“选项” /“高级” /“更新”中取消选中该选项,否则Firefox会自动更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM