Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- FirefoxOptions options = new FirefoxOptions();
- options.setProfile(getProfile("dom.webnotifications.enabled", false));
- FirefoxDriver driver = new FirefoxDriver(options);
- }
- private static FirefoxProfile getProfile(String profileName) {
- if (profileName == null || profileName.trim().isEmpty()) {
- return new FirefoxProfile();
- }
- return new ProfilesIni().getProfile(profileName);
- }
Add Comment
Please, Sign In to add comment