File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/main/java/util/driver Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,7 @@ private AppiumDriver getMobileDriver() {
69
69
} catch (MalformedURLException e ) {
70
70
e .printStackTrace ();
71
71
}
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 ()) {
79
73
try {
80
74
appiumDriver = new IOSDriver (new URL (getRemoteUrlPath ()), capabilities );
81
75
} catch (MalformedURLException e ) {
@@ -94,6 +88,7 @@ private WebDriver getLocalWebDriver() {
94
88
setChromeDriver ();
95
89
ChromeOptions options = new ChromeOptions ();
96
90
options .addArguments ("--start-maximized" );
91
+ options .addArguments ("--disable-notifications" );
97
92
webDriver = new ChromeDriver (options );
98
93
} else if (isSafari ()) {
99
94
webDriver = new SafariDriver ();
You can’t perform that action at this time.
0 commit comments