Skip to content

Commit

Permalink
Fixed an issue with safaridriver
Browse files Browse the repository at this point in the history
  • Loading branch information
Umut Ay Bora committed Oct 6, 2022
1 parent d7d5c61 commit aca6874
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.github.Umutayb</groupId>
<artifactId>Pickleib</artifactId>
<version>1.2.0</version>
<version>1.2.1</version>
<packaging>jar</packaging>

<name>Pickleib</name>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/utils/driver/DriverFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public static RemoteWebDriver getDriver(String driverName, RemoteWebDriver drive

case "safari":
SafariOptions safariOptions = new SafariOptions();
// WebDriverManager.safaridriver().setup();
System.setProperty("webdriver.safari.driver","/usr/bin/safaridriver.");
WebDriverManager.safaridriver().setup();
// System.setProperty("webdriver.safari.driver","/usr/bin/safaridriver.");
driver = new SafariDriver(safariOptions);
break;

Expand All @@ -92,7 +92,7 @@ public static RemoteWebDriver getDriver(String driverName, RemoteWebDriver drive
}
driver.manage().window().setSize(new Dimension(frameWidth,frameHeight));
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(30));
log.new Important(driverName+GRAY+" was selected");
log.new Important(driverName + GRAY + " was selected");
return driver;
}
catch (Exception gamma) {
Expand Down

0 comments on commit aca6874

Please sign in to comment.