aquality.selenium.configuration.driversettings.SafariSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aquality-selenium Show documentation
Show all versions of aquality-selenium Show documentation
Library around Selenium WebDriver
package aquality.selenium.configuration.driversettings;
import aquality.selenium.browser.BrowserName;
import aquality.selenium.core.utilities.ISettingsFile;
import org.openqa.selenium.remote.AbstractDriverOptions;
import org.openqa.selenium.safari.SafariOptions;
public class SafariSettings extends DriverSettings {
public SafariSettings(ISettingsFile settingsFile) {
super(settingsFile);
}
@Override
public AbstractDriverOptions> getDriverOptions() {
SafariOptions safariOptions = new SafariOptions();
setCapabilities(safariOptions);
return safariOptions;
}
@Override
public String getDownloadDirCapabilityKey() {
throw new UnsupportedOperationException("Download directory for Safari profiles is not supported in capabilities. Please, use separate 'downloadDir' property");
}
@Override
public String getDownloadDir() {
return String.valueOf(getSettingsFile().getValue(getDriverSettingsPath("downloadDir")));
}
@Override
public BrowserName getBrowserName() {
return BrowserName.SAFARI;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy