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
@Deprecated public class OperaDriver extends org.openqa.selenium.remote.RemoteWebDriver implements org.openqa.selenium.html5.LocationContext, org.openqa.selenium.html5.WebStorageDeprecated.Useorg.openqa.selenium.chrome.ChromeDriverwithorg.openqa.selenium.chrome.ChromeOptions#setBinary(File)ororg.openqa.selenium.chrome.ChromeOptions#setBinary(String)to set the path to the Opera browser.Example usage:
ChromeOptions options = new ChromeOptions() options.setBinary(new File("/path/to/opera")); // For using Opera browser with ChromeDriver: ChromeDriver driver = new ChromeDriver(options); // For use with RemoteWebDriver: ChromeOptions options = new ChromeOptions(); options.setBinary(new File("/path/to/opera")); RemoteWebDriver driver = new RemoteWebDriver( new URL("http://localhost:4444/"), options);AWebDriverimplementation that controls a Blink-based Opera browser running on the local machine. It requires anoperadriverexecutable to be available in PATH.- See Also:
- operadriver Since operadriver does not support w3c, Selenium will remove the support in the next version.
-
-
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()Deprecated.Creates a new OperaDriver using thedefaultserver configuration.OperaDriver(org.openqa.selenium.Capabilities capabilities)Deprecated.UseOperaDriver(OperaOptions)instead.OperaDriver(OperaDriverService service)Deprecated.Creates a new OperaDriver instance.OperaDriver(OperaDriverService service, org.openqa.selenium.Capabilities capabilities)Deprecated.UseOperaDriver(OperaDriverService, OperaOptions)instead.OperaDriver(OperaDriverService service, OperaOptions options)Deprecated.Creates a new OperaDriver instance with the specified options.OperaDriver(OperaOptions options)Deprecated.Creates a new OperaDriver instance with the specified options.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.openqa.selenium.html5.LocalStoragegetLocalStorage()Deprecated.org.openqa.selenium.html5.SessionStoragegetSessionStorage()Deprecated.org.openqa.selenium.html5.Locationlocation()Deprecated.voidsetFileDetector(org.openqa.selenium.remote.FileDetector detector)Deprecated.voidsetLocation(org.openqa.selenium.html5.Location location)Deprecated.-
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()
Deprecated.Creates a new OperaDriver using thedefaultserver configuration.
-
OperaDriver
public OperaDriver(OperaDriverService service)
Deprecated.Creates a new OperaDriver instance. Theservicewill 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. Thecapabilitieswill be passed to the chromedriver service.- Parameters:
capabilities- The capabilities required from the OperaDriver.- See Also:
OperaDriver(OperaDriverService, Capabilities)
-
OperaDriver
public OperaDriver(OperaOptions options)
Deprecated.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)
Deprecated.Creates a new OperaDriver instance with the specified options. Theservicewill 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. Theservicewill 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)
Deprecated.- Overrides:
setFileDetectorin classorg.openqa.selenium.remote.RemoteWebDriver
-
getLocalStorage
public org.openqa.selenium.html5.LocalStorage getLocalStorage()
Deprecated.- Specified by:
getLocalStoragein interfaceorg.openqa.selenium.html5.WebStorage
-
getSessionStorage
public org.openqa.selenium.html5.SessionStorage getSessionStorage()
Deprecated.- Specified by:
getSessionStoragein interfaceorg.openqa.selenium.html5.WebStorage
-
location
public org.openqa.selenium.html5.Location location()
Deprecated.- Specified by:
locationin interfaceorg.openqa.selenium.html5.LocationContext
-
setLocation
public void setLocation(org.openqa.selenium.html5.Location location)
Deprecated.- Specified by:
setLocationin interfaceorg.openqa.selenium.html5.LocationContext
-
-