I'm working with automated tests and I'm trying to set up selenium grid for running tests in multiple environments.
I've successfully ran tests with chrome driver in Mac OS X 10.11 and Windows10.
Right now when I try to run a test feature, in a page with a video element, and the following message prompts on firefox (geckodriver):
Firefox is installing components needed to play audio or video, please try again later
and the video does not start.
I'm running selenium standalone both on the Hub(Mac OS X) and Node(Windows 10) of the selenium grid.
I've tried to create a profile and import it on the node config (windowsNodeConfig.json):
{
"capabilities": [
(...)
{
"browserName": "firefox",
"maxInstances": 5,
"platform": "WINDOWS",
"marionette": true,
"acceptInsecureCerts": true,
"webdriver.gecko.driver": "geckodriver.exe",
"firefox_profile": "firefoxProfile"
}
(...)
],
"nodeTimeout": 180000,
"browserTimeout": 180,
"timeout": 180,
"newSessionWaitTimeout": 180,
"cleanUpCycle": 5000,
"firefoxProfileTemplate": "firefoxProfile"
}
Versions:
Selenium standalone : 3.4.0
Geckodriver : 0.16.1
Firefox (Windows) : 53.0.3
I'm running the node as follows:
$ java -jar selenium-server-standalone-3.4.0.jar -role node -nodeConfig windowsNodeConfig.json -hub http://<IP_ADDRESS>:4444
Running the Hub as follows:
$ java -jar selenium-hub/selenium-server-standalone-3.4.0.jar -role hub
The firefox profile I've created has the Widevine Content Decryption Module addon installed. However on the node logs I can see the following line:
JavaScript error: resource://gre/modules/AddonManager.jsm, line 2570: NS_ERROR_NOT_INITIALIZED: AddonManager is not initialized
The same test feature runs in chrome.
I've created the firefox profile as described in: https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles#w_creating-a-profile
Am I missing any config?