在 Zalenium 上使用自定义配置文件以启用 DRM

Use custom profile on Zalenium to enable DRM

我正在尝试为 远程驱动程序 创建自定义 firefox 配置文件以进行 Selenium 测试。使用的技术:

这根本不会启动 Zalenium 上的测试视频,而是挂起。 这是创建远程驱动程序的正确方法吗?我使用自定义配置文件的原因是因为我想在开始测试时启用 DRM,因为测试显示视频

终于找到了在远程驱动程序上启用 DRM 的解决方案

        FirefoxOptions firefoxOptions = new FirefoxOptions();
        firefoxOptions.addPreference("media.eme.enabled",true);
        firefoxOptions.addPreference("media.gmp-manager.updateEnabled", true);
        driver = new RemoteWebDriver("http://grid:4444/wd/hub", firefoxOptions);