简体   繁体   English

停止下载壁虎驱动程序

[英]Stop gecko driver downloads

Any ideas which ff preferences should be modified in order to stop sending requests for GeckoMediaPlugins (we don't use this plugin)? 为了停止发送对GeckoMediaPlugins的请求(我们不使用此插件),应该修改哪个首选项的想法?

addons.productaddons    INFO    sending request to: https://aus5.mozilla.org/update/3/GMP/47.0.1/20160623154057/WINNT_x86_64-msvc-x64/en-US/release-cck-mozilla-EMEfree/Windows_NT%206.1.1.0%20(x64)/mozilla-EMEfree/1.0/update.xml

The time execution of our tests is increased 20 times because of this request. 由于这个要求,我们的测试执行时间增加了20倍。

We use a customer profile for firefox 我们使用Firefox客户资料

private static void initialiseFirefoxProfile() {

        browser = "Firefox";
        FirefoxBinary fbinary = new FirefoxBinary(new File("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"));
        fbinary.setTimeout(java.util.concurrent.TimeUnit.SECONDS.toMillis(90));
        FirefoxProfile profile = new FirefoxProfile();
        profile.setPreference("browser.download.folderList", 2);
        profile.setPreference("browser.download.dir", downloadDirInUse());
        profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/x-download;charset=utf-8, text/plain;charset=utf-8, text/html;charset=utf-8");
        profile.setPreference("pdfjs.disabled", true);
        profile.setPreference("media.gmp-eme-adobe.enabled",false);
        profile.setPreference("media.gmp-manager.cert.checkAttributes",false);
        profile.setPreference("media.gmp-manager.cert.requireBuiltIn",false);
        profile.setPreference("media.gmp-provider.enabled",false);
        profile.setPreference("media.gmp-widevinecdm.enabled",false);
        profile.setPreference("media.gmp.decoder.enabled",false);
        profile.setPreference("media.gmp.trial-create.enabled",false);
        profile.setPreference("extensions.update.enabled",false);
        profile.setPreference("media.eme.enabled",false);
        DesiredCapabilities dc = DesiredCapabilities.firefox();
        dc.setCapability(FirefoxDriver.MARIONETTE, false);
        dc.setCapability(FirefoxDriver.BINARY, fbinary);
        dc.setCapability(FirefoxDriver.PROFILE, profile);
        driver = new FirefoxDriver(dc);

    }

and we don't use geckoriver . 而且我们不使用geckoriver The following preference is a frozen one (so it's already false) - "extensions.update.enabled": false 以下首选项是冻结的首选项(因此它已经是false)-“ extensions.update.enabled”:false

Thank you in advance. 先感谢您。

Kind regards 亲切的问候

可以通过以下方式在代码中禁用OpenH264 Video Codec provided by Cisco的插件OpenH264 Video Codec provided by Cisco的自动更新:

profile.setPreference("media.gmp-gmpopenh264.autoupdate", "false");

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

相关问题 Java Selenium Gecko 驱动程序未加载 - Java Selenium Gecko driver not loading 如何在动态 Web 应用程序中使用 Gecko 驱动程序 - How to use Gecko driver in Dynamic Web Application 在Selenium 3.11中使用gecko驱动程序脚本时出错 - Error using gecko driver script for Selenium 3.11 如何减少Gecko Driver日志的详细程度? - How to decrease verbosity of Gecko Driver's logs? 为什么 Eclipse 无法识别 webdriver.gecko.driver - Why eclipse is not recognising webdriver.gecko.driver Gecko Driver 0.9 Firefox在driver.get之后挂起 - Gecko Driver 0.9 Firefox hangs after driver.get 尝试使用Gecko驱动程序运行Selenium Grid代码时,获取“驱动程序可执行文件的路径必须由webdriver.gecko.driver设置” - Getting “The path to the driver executable must be set by the webdriver.gecko.driver ” while try to run selenium Grid code with Gecko driver Selenium webdriver gecko错误:驱动程序的路径必须由webdriver.gecko设置 - Selenium webdriver gecko error: The path to the driver must be set by webdriver.gecko 无法同时使用 chrome 和 gecko 驱动程序执行 selenium java 程序 - Unable to execute selenium java program using both chrome and gecko driver Firefox Gecko驱动程序无法单击“文件”类型的输入元素 - Firefox Gecko driver cannot click on input element with type “file”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM