Skip to content

Instantly share code, notes, and snippets.

@gauntface
Created March 6, 2017 22:20
Show Gist options
  • Select an option

  • Save gauntface/cfed595fb6a434fa0b80f9c1caff9307 to your computer and use it in GitHub Desktop.

Select an option

Save gauntface/cfed595fb6a434fa0b80f9c1caff9307 to your computer and use it in GitHub Desktop.
const webdriverFirefox = require(‘selenium-webdriver/firefox’);
const ffProfile = new webdriverFirefox.Profile();
ffProfile.setPreference('dom.push.testing.ignorePermission', true);
ffProfile.setPreference('notification.prompt.testing', true);
ffProfile.setPreference('notification.prompt.testing.allow', true);
Const options = new webdriverFirefox.Options();
options.setProfile(ffProfile);
const builder = new webdriver
.Builder()
.forBrowser(‘firefox’)
.setFirefoxOptions(options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment