Flash播放器不再在浏览器堆栈上的浏览器中工作了?

Flash播放器不再在浏览器堆栈上的浏览器中工作了?,flash,firefox,selenium-webdriver,browserstack,Flash,Firefox,Selenium Webdriver,Browserstack,我正在为一个网站进行自动化测试,这个网站在一些页面上使用Flash播放器。我在本地运行我的测试,看起来一切都很顺利,但是当我尝试在Browserstack上运行我的测试时,如果测试试图与使用Flash player的站点功能交互,那么它就不起作用了。浏览器控制台中存在错误- 错误:调用NPObject上的方法时出错 对于测试,我在Windows10上使用FirefoxBrowser 67.0 这是我的Firefox配置文件: FirefoxProfile firefoxProfile = new

我正在为一个网站进行自动化测试,这个网站在一些页面上使用Flash播放器。我在本地运行我的测试,看起来一切都很顺利,但是当我尝试在Browserstack上运行我的测试时,如果测试试图与使用Flash player的站点功能交互,那么它就不起作用了。浏览器控制台中存在错误- 错误:调用NPObject上的方法时出错

对于测试,我在Windows10上使用FirefoxBrowser 67.0

这是我的Firefox配置文件:

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);
还有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"
    }

您可以查看以下联机资源以了解错误-


我使用您提到的功能在Firefox上执行了测试,对我来说效果很好

我想,我发现了一个问题,它不是Flash播放器


问题是,我正在测试的网站尝试与网络摄像头和麦克风交互,但在网络摄像头的Browserstack会话中没有可用的虚拟或模拟设备。

您可以查看设备摄像头的此常见问题解答:

我想,我发现了一个问题,它不是Flash播放器。问题是,我的测试网站尝试与网络摄像头和麦克风交互,但在网络摄像头的Browserstack会话中没有虚拟或模拟设备。在我的情况下,这是移动设备的常见问题解答-我尝试从桌面web浏览器使用网络摄像头。