|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.remote.RemoteWebDriver
org.openqa.selenium.safari.SafariDriver
public class SafariDriver
A WebDriver implementation that controls Safari using a browser extension
(consequently, only Safari 5.1+ is supported).
This driver can be configured using the SafariOptions
class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.openqa.selenium.remote.RemoteWebDriver |
---|
RemoteWebDriver.RemoteTargetLocator, RemoteWebDriver.RemoteWebDriverOptions, RemoteWebDriver.When |
Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver |
---|
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 |
Field Summary | |
---|---|
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 Summary | |
---|---|
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 . |
Method Summary | ||
---|---|---|
|
getScreenshotAs(org.openqa.selenium.OutputType<X> target)
|
|
void |
setFileDetector(FileDetector detector)
|
|
protected void |
startClient()
|
|
protected void |
stopClient()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@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.
Constructor Detail |
---|
public SafariDriver()
SafariOptions
.
public SafariDriver(org.openqa.selenium.Capabilities desiredCapabilities)
DesiredCapabilities
to a SafariOptions
instance and initializes a new SafariDriver using these options.
SafariOptions.fromCapabilities(org.openqa.selenium.Capabilities)
public SafariDriver(SafariOptions safariOptions)
SafariOptions
.
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |