0

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"
    }

3 Answers3

1

You may review the following online resources for the error -

I executed the test on Firefox using the capabilities you have mentioned and it worked fine for me!

Ozone17
  • 138
  • 7
  • I think, I found a problem and it is not Flash player. The thing is that my website under test tries to interact with a webcam and microphone, but there is no virtual or emulated device available in Browserstack session for the webcam. – Maksym Zapisov Jun 24 '19 at 08:47
0

I think, I found a problem and it is not Flash player.

The thing is that my website under test tries to interact with a webcam and microphone, but there is no virtual or emulated device available in Browserstack session for the webcam.

0

You can review this FAQ for the device camera: https://www.browserstack.com/question/658.

ANM1996
  • 161
  • 3