Skip to content

Commit b5be175

Browse files
author
Denys Zaiats
committed
[master] - added options to disable notifications
1 parent 920a95c commit b5be175

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/main/java/util/driver/WebDriverFactory.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,7 @@ private AppiumDriver getMobileDriver() {
6969
} catch (MalformedURLException e) {
7070
e.printStackTrace();
7171
}
72-
} else if (isIOS()) {
73-
try {
74-
appiumDriver = new IOSDriver(new URL(getRemoteUrlPath()), capabilities);
75-
} catch (MalformedURLException e) {
76-
e.printStackTrace();
77-
}
78-
} else if (isWindows()) {
72+
} else if (isIOS() || isWindows()) {
7973
try {
8074
appiumDriver = new IOSDriver(new URL(getRemoteUrlPath()), capabilities);
8175
} catch (MalformedURLException e) {
@@ -94,6 +88,7 @@ private WebDriver getLocalWebDriver() {
9488
setChromeDriver();
9589
ChromeOptions options = new ChromeOptions();
9690
options.addArguments("--start-maximized");
91+
options.addArguments("--disable-notifications");
9792
webDriver = new ChromeDriver(options);
9893
} else if (isSafari()) {
9994
webDriver = new SafariDriver();

0 commit comments

Comments
 (0)