public class SafariDriver extends RemoteWebDriver implements org.openqa.selenium.TakesScreenshot
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
A boolean capability that instructs the SafariDriver to delete all existing
session data when starting a new session.
|
static String |
DATA_DIR_CAPABILITY
Capability that defines the path to a Safari installations data
directory.
|
static String |
NO_INSTALL_EXTENSION_CAPABILITY
Boolean capability that specifies whether to skip installing the SafariDriver extension.
|
Constructor and Description |
---|
SafariDriver() |
SafariDriver(org.openqa.selenium.Capabilities desiredCapabilities) |
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
public static final String CLEAN_SESSION_CAPABILITY
Warning: Since Safari uses a single profile for the current user, enabling this capability will permanently erase any existing session data.
public static final String DATA_DIR_CAPABILITY
This capability may be set either as a String or File object.
public static final String NO_INSTALL_EXTENSION_CAPABILITY
public SafariDriver()
public SafariDriver(org.openqa.selenium.Capabilities desiredCapabilities)
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.