Class 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.WebStorage
    Deprecated.
    Use org.openqa.selenium.chrome.ChromeDriver with org.openqa.selenium.chrome.ChromeOptions#setBinary(File) or org.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);
     
    A WebDriver implementation that controls a Blink-based Opera browser running on the local machine. It requires an operadriver executable 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
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      org.openqa.selenium.html5.LocalStorage getLocalStorage()
      Deprecated.
       
      org.openqa.selenium.html5.SessionStorage getSessionStorage()
      Deprecated.
       
      org.openqa.selenium.html5.Location location()
      Deprecated.
       
      void setFileDetector​(org.openqa.selenium.remote.FileDetector detector)
      Deprecated.
       
      void setLocation​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.openqa.selenium.JavascriptExecutor

        executeScript, getPinnedScripts, pin, unpin
    • Constructor Detail

      • OperaDriver

        @Deprecated
        public OperaDriver​(org.openqa.selenium.Capabilities capabilities)
        Deprecated.
        Creates a new OperaDriver instance. The capabilities will be passed to the chromedriver service.
        Parameters:
        capabilities - The capabilities required from the OperaDriver.
        See Also:
        OperaDriver(OperaDriverService, Capabilities)
      • OperaDriver

        public OperaDriver​(OperaDriverService service,
                           OperaOptions options)
        Deprecated.
        Creates a new OperaDriver instance with the specified options. The service will be started along with the driver, and shutdown upon calling RemoteWebDriver.quit().
        Parameters:
        service - The service to use.
        options - The options to use.
      • OperaDriver

        @Deprecated
        public OperaDriver​(OperaDriverService service,
                           org.openqa.selenium.Capabilities capabilities)
        Creates a new OperaDriver instance. The service will be started along with the driver, and shutdown upon calling RemoteWebDriver.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:
        setFileDetector in class org.openqa.selenium.remote.RemoteWebDriver
      • getLocalStorage

        public org.openqa.selenium.html5.LocalStorage getLocalStorage()
        Deprecated.
        Specified by:
        getLocalStorage in interface org.openqa.selenium.html5.WebStorage
      • getSessionStorage

        public org.openqa.selenium.html5.SessionStorage getSessionStorage()
        Deprecated.
        Specified by:
        getSessionStorage in interface org.openqa.selenium.html5.WebStorage
      • location

        public org.openqa.selenium.html5.Location location()
        Deprecated.
        Specified by:
        location in interface org.openqa.selenium.html5.LocationContext
      • setLocation

        public void setLocation​(org.openqa.selenium.html5.Location location)
        Deprecated.
        Specified by:
        setLocation in interface org.openqa.selenium.html5.LocationContext