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() {
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 ();
You can’t perform that action at this time.
0 commit comments