使用WebdriverIO关闭Firefox更新弹出窗口

时间:2018-11-16 12:51:34

标签: javascript selenium selenium-webdriver webdriver chimp.js

当我使用webdriverIO运行测试时,我想关闭此弹出窗口,但我无法执行此操作。 我正在使用黑猩猩进行测试

我尝试了browser.alertdismiss(),但没有成功。另外,我尝试使用此Mozilla docs并添加此配置,但似乎Firefox并没有使用该配置文件

我的配置文件

// wdio.conf.js
const config = {
  // ...
  services: ['firefox-profile'],
  firefoxProfile: {
    "app.update.enabled": true,
      "app.update.auto": true,
      "app.update.silent": true,
      "privacy.popups.firstTime": true,
      "update.showSlidingNotification": false,
      "update_notifications.enabled": false ,
  },
  // ...
};

module.export = config;

0 个答案:

没有答案