I am working on automation tests for a website and this website uses Flash player on some pages. I run my test locally and all looks smooth, but when I try to run my test on Browserstack, if the test tries to interact with site's functionality that uses Flash player - it doesn't work. There is an error in the browser's console -
Error: Error calling method on NPObject!
For tests, I use Firefox browser (67.0) on Windows 10.
There is my config for Firefox profile:
FirefoxProfile firefoxProfile = new FirefoxProfile();
firefoxProfile.setPreference("plugin.state.flash", 2);
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
capabilities.setCapability("marionette",true);
capabilities.setCapability(FirefoxDriver.PROFILE, firefoxProfile);
And there is config for Browserstack
"capabilities": {
"build": "My ATS",
"name": "My Automation tests 1.00",
"browserstack.debug": true,
"acceptSslCerts": true,
"browserstack.console": "errors"
},
"environments": {
"default": {
"os": "Windows",
"os_version": "10",
"browser": "Firefox",
"browser_version": "67.0",
"resolution": "1920x1080"
}