Guest User

Untitled

a guest
Jan 16th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public static void main(String[] args) {
  2. FirefoxOptions options = new FirefoxOptions();
  3. options.setProfile(getProfile("dom.webnotifications.enabled", false));
  4. FirefoxDriver driver = new FirefoxDriver(options);
  5. }
  6.  
  7. private static FirefoxProfile getProfile(String profileName) {
  8. if (profileName == null || profileName.trim().isEmpty()) {
  9. return new FirefoxProfile();
  10. }
  11. return new ProfilesIni().getProfile(profileName);
  12. }
Add Comment
Please, Sign In to add comment