I'm currently developing a Selenium-Java based application and have to pass some media files, audio or video files to the browser.
I've been able to do it successfully on Chrome using the below code snippet:
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
ChromeOptions options = new ChromeOptions();
options.addArguments("--allow-file-access-from-files",
"--use-fake-ui-for-media-stream",
"--allow-file-access",
"--use-file-for-fake-audio-capture=D:\\PATH\\TO\\WAY\\xxx.wav",
"--use-fake-device-for-media-stream");
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
ChromeDriver driver = new ChromeDriver(capabilities);
Do you think there are similar options available in Firefox 33.1 to achieve the same capability?
If not so, how can it be done?
Thanks in advance:)