Package org.openqa.selenium.opera
Class OperaDriver
- java.lang.Object
-
- org.openqa.selenium.remote.RemoteWebDriver
-
- org.openqa.selenium.opera.OperaDriver
-
- All Implemented Interfaces:
org.openqa.selenium.HasCapabilities
,org.openqa.selenium.html5.LocationContext
,org.openqa.selenium.html5.WebStorage
,org.openqa.selenium.interactions.HasInputDevices
,org.openqa.selenium.interactions.Interactive
,org.openqa.selenium.JavascriptExecutor
,org.openqa.selenium.PrintsPage
,org.openqa.selenium.SearchContext
,org.openqa.selenium.TakesScreenshot
,org.openqa.selenium.virtualauthenticator.HasVirtualAuthenticator
,org.openqa.selenium.WebDriver
public class OperaDriver extends org.openqa.selenium.remote.RemoteWebDriver implements org.openqa.selenium.html5.LocationContext, org.openqa.selenium.html5.WebStorage
AWebDriver
implementation that controls a Blink-based Opera browser running on the local machine. It requires anoperadriver
executable to be available in PATH.- See Also:
- operadriver
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openqa.selenium.remote.RemoteWebDriver
org.openqa.selenium.remote.RemoteWebDriver.RemoteTargetLocator, org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions, org.openqa.selenium.remote.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
-
-
Constructor Summary
Constructors Constructor Description OperaDriver()
Creates a new OperaDriver using thedefault
server configuration.OperaDriver(org.openqa.selenium.Capabilities capabilities)
Deprecated.UseOperaDriver(OperaOptions)
instead.OperaDriver(OperaDriverService service)
Creates a new OperaDriver instance.OperaDriver(OperaDriverService service, org.openqa.selenium.Capabilities capabilities)
Deprecated.UseOperaDriver(OperaDriverService, OperaOptions)
instead.OperaDriver(OperaDriverService service, OperaOptions options)
Creates a new OperaDriver instance with the specified options.OperaDriver(OperaOptions options)
Creates a new OperaDriver instance with the specified options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.html5.LocalStorage
getLocalStorage()
org.openqa.selenium.html5.SessionStorage
getSessionStorage()
org.openqa.selenium.html5.Location
location()
void
setFileDetector(org.openqa.selenium.remote.FileDetector detector)
void
setLocation(org.openqa.selenium.html5.Location location)
-
Methods inherited from class org.openqa.selenium.remote.RemoteWebDriver
addVirtualAuthenticator, builder, close, execute, execute, execute, executeAsyncScript, executeScript, findElement, findElement, findElements, findElements, findElements, get, getCapabilities, getCommandExecutor, getCurrentUrl, getElementConverter, getErrorHandler, getExecuteMethod, getFileDetector, getKeyboard, getMouse, getPageSource, getScreenshotAs, getSessionId, getTitle, getWindowHandle, getWindowHandles, log, manage, navigate, perform, print, quit, removeVirtualAuthenticator, resetInputState, setCommandExecutor, setElementConverter, setErrorHandler, setFoundBy, setLogLevel, setSessionId, startSession, switchTo, toString
-
-
-
-
Constructor Detail
-
OperaDriver
public OperaDriver()
Creates a new OperaDriver using thedefault
server configuration.
-
OperaDriver
public OperaDriver(OperaDriverService service)
Creates a new OperaDriver instance. Theservice
will be started along with the driver, and shutdown upon callingRemoteWebDriver.quit()
.- Parameters:
service
- The service to use.- See Also:
OperaDriver(OperaDriverService, OperaOptions)
-
OperaDriver
@Deprecated public OperaDriver(org.openqa.selenium.Capabilities capabilities)
Deprecated.UseOperaDriver(OperaOptions)
instead.Creates a new OperaDriver instance. Thecapabilities
will be passed to the chromedriver service.- Parameters:
capabilities
- The capabilities required from the OperaDriver.- See Also:
OperaDriver(OperaDriverService, Capabilities)
-
OperaDriver
public OperaDriver(OperaOptions options)
Creates a new OperaDriver instance with the specified options.- Parameters:
options
- The options to use.- See Also:
OperaDriver(OperaDriverService, OperaOptions)
-
OperaDriver
public OperaDriver(OperaDriverService service, OperaOptions options)
Creates a new OperaDriver instance with the specified options. Theservice
will be started along with the driver, and shutdown upon callingRemoteWebDriver.quit()
.- Parameters:
service
- The service to use.options
- The options to use.
-
OperaDriver
@Deprecated public OperaDriver(OperaDriverService service, org.openqa.selenium.Capabilities capabilities)
Deprecated.UseOperaDriver(OperaDriverService, OperaOptions)
instead.Creates a new OperaDriver instance. Theservice
will be started along with the driver, and shutdown upon callingRemoteWebDriver.quit()
.- Parameters:
service
- The service to use.capabilities
- The capabilities required from the OperaDriver.
-
-
Method Detail
-
setFileDetector
public void setFileDetector(org.openqa.selenium.remote.FileDetector detector)
- Overrides:
setFileDetector
in classorg.openqa.selenium.remote.RemoteWebDriver
-
getLocalStorage
public org.openqa.selenium.html5.LocalStorage getLocalStorage()
- Specified by:
getLocalStorage
in interfaceorg.openqa.selenium.html5.WebStorage
-
getSessionStorage
public org.openqa.selenium.html5.SessionStorage getSessionStorage()
- Specified by:
getSessionStorage
in interfaceorg.openqa.selenium.html5.WebStorage
-
location
public org.openqa.selenium.html5.Location location()
- Specified by:
location
in interfaceorg.openqa.selenium.html5.LocationContext
-
setLocation
public void setLocation(org.openqa.selenium.html5.Location location)
- Specified by:
setLocation
in interfaceorg.openqa.selenium.html5.LocationContext
-
-