javaseleniumfirefoxzaleniumfirefox-profile

Use custom profile on Zalenium to enable DRM


I am trying to create a custom firefox profile for a remote driver for a Selenium test. Technologies used:

This does not start the tests videos on Zalenium at all, but hangs. Is this the correct way to create the remote driver? The reason why im using the custom profile is because I want to have DRM enabled when starting the tests,as the tests display videos


Solution

  • Finally found the solution to enable DRM on the remote driver

            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);