public class SafariDriver extends RemoteWebDriver implements org.openqa.selenium.TakesScreenshot
SafariOptions
class.RemoteWebDriver.RemoteTargetLocator, RemoteWebDriver.RemoteWebDriverOptions, RemoteWebDriver.When
org.openqa.selenium.WebDriver.ImeHandler, org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window
Modifier and Type | Field and Description |
---|---|
static String |
CLEAN_SESSION_CAPABILITY
Deprecated.
use
SafariOptions.setUseCleanSession(boolean) instead. |
static String |
DATA_DIR_CAPABILITY
Deprecated.
use
SafariOptions.setDataDir(java.io.File) instead. |
static String |
NO_INSTALL_EXTENSION_CAPABILITY
Deprecated.
use
SafariOptions.setSkipExtensionInstallation(boolean) instead. |
Constructor and Description |
---|
SafariDriver()
Initializes a new SafariDriver} class with default
SafariOptions . |
SafariDriver(org.openqa.selenium.Capabilities desiredCapabilities)
Converts the specified
DesiredCapabilities to a SafariOptions
instance and initializes a new SafariDriver using these options. |
SafariDriver(SafariOptions safariOptions)
Initializes a new SafariDriver using the specified
SafariOptions . |
Modifier and Type | Method and Description |
---|---|
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> target) |
void |
setFileDetector(FileDetector detector) |
protected void |
startClient() |
protected void |
stopClient() |
close, execute, execute, executeAsyncScript, executeScript, findElement, findElement, findElementByClassName, findElementByCssSelector, findElementById, findElementByLinkText, findElementByName, findElementByPartialLinkText, findElementByTagName, findElementByXPath, findElements, findElements, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, get, getCapabilities, getCommandExecutor, getCurrentUrl, getElementConverter, getErrorHandler, getExecuteMethod, getFileDetector, getKeyboard, getMouse, getPageSource, getRemoteStatus, getSessionId, getTitle, getWindowHandle, getWindowHandles, log, manage, navigate, quit, setCommandExecutor, setElementConverter, setFoundBy, setLogLevel, setSessionId, startSession, startSession, switchTo, toString
@Deprecated public static final String CLEAN_SESSION_CAPABILITY
SafariOptions.setUseCleanSession(boolean)
instead.Warning: Since Safari uses a single profile for the current user, enabling this capability will permanently erase any existing session data.
@Deprecated public static final String DATA_DIR_CAPABILITY
SafariOptions.setDataDir(java.io.File)
instead.This capability may be set either as a String or File object.
@Deprecated public static final String NO_INSTALL_EXTENSION_CAPABILITY
SafariOptions.setSkipExtensionInstallation(boolean)
instead.public SafariDriver()
SafariOptions
.public SafariDriver(org.openqa.selenium.Capabilities desiredCapabilities)
DesiredCapabilities
to a SafariOptions
instance and initializes a new SafariDriver using these options.public SafariDriver(SafariOptions safariOptions)
SafariOptions
.public void setFileDetector(FileDetector detector)
setFileDetector
in class RemoteWebDriver
protected void startClient()
startClient
in class RemoteWebDriver
protected void stopClient()
stopClient
in class RemoteWebDriver
public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target) throws org.openqa.selenium.WebDriverException
getScreenshotAs
in interface org.openqa.selenium.TakesScreenshot
org.openqa.selenium.WebDriverException
Copyright © 2013. All rights reserved.