Package com.opera.core.systems

Examples of com.opera.core.systems.OperaDriver$OperaOptions


          new OperaProfile(System.getProperty("wasavi.tests.opera.profile_path")));
      cap.setCapability("opera.logging.level",
          java.util.logging.Level.FINE);
      cap.setCapability("opera.binary",
          System.getProperty("wasavi.tests.opera.executable"));
      driver = new OperaDriver(cap);
    }

    else if (name.equals("chrome")) {
      ChromeDriverService service = ChromeDriverService.createDefaultService();
      ChromeOptions options = new ChromeOptions();
View Full Code Here


        }
    }

    @Override
    public OperaDriver createInstance(TypedWebDriverConfiguration<OperaDriverConfiguration> configuration) {
        OperaDriver driver = super.createInstance(configuration);
        OperaDriver proxy = GrapheneContext.getProxyForDriver(OperaDriver.class);
        GrapheneContext.set(driver);
        return proxy;
    }
View Full Code Here

      } catch (MalformedURLException e) {
        throw new RuntimeException(e);
      }
      */
    case OPERA:
      return new OperaDriver();
    }
    throw new RuntimeException("fail to create WebDriver");
  }
View Full Code Here

            public void setLocalDriver() {
                switch (this.desc) {
                    case "firefox"  : this.driver = new FirefoxDriver();break;
                    case "iexplorer": this.driver = new InternetExplorerDriver();break;
                    case "chrome"   : this.driver = new ChromeDriver();break;
                    case "opera"    : this.driver = new OperaDriver();break;
                    case "htmlunit" : this.driver = new HtmlUnitDriver();break;
                }
                setJSDriver();
                this.driver.manage().timeouts().pageLoadTimeout(MAX_WAIT_S, TimeUnit.SECONDS);
                this.driver.manage().timeouts().implicitlyWait(MAX_WAIT_S, TimeUnit.SECONDS);
View Full Code Here

                return new InternetExplorerDriver();
            case GC:
                System.setProperty("webdriver.chrome.driver", TEST_CLASSES_PATH + "//chromedriver");
                return new ChromeDriver();
            case OPERA:
                return new OperaDriver();
            case HTMLUNIT:
                return new HtmlUnitDriver();
            default:
                throw new UnknownBrowserException("Cannot create driver for unknown browser type");
        }
View Full Code Here

    } else if ("htmlUnit".equalsIgnoreCase(browser)) {
      driver = new HtmlUnitDriver();
    } else if ("htmlUnit+js".equalsIgnoreCase(browser)) {
      driver = new HtmlUnitDriver(true);
    } else if ("opera".equalsIgnoreCase(browser)) {
            driver = new OperaDriver();
        } else if ("opera-mobile-tablet".equalsIgnoreCase(browser)) {
            DesiredCapabilities capabilities = DesiredCapabilities.opera();

            // tell opera mobile to use the tablet ui
            capabilities.setCapability("opera.product", OperaProduct.MOBILE);
            capabilities.setCapability("opera.arguments", "-tabletui -displaysize 860x600");

            driver = new OperaDriver(capabilities);
        } else if ("opera-mobile-phone".equalsIgnoreCase(browser)) {
            DesiredCapabilities capabilities = DesiredCapabilities.opera();

            // tell opera mobile to use the mobile handset ui
            capabilities.setCapability("opera.product", OperaProduct.MOBILE);
            capabilities.setCapability("opera.arguments", "-mobileui");

            driver = new OperaDriver(capabilities);
        } else if ("phantomjs".equalsIgnoreCase(browser)) {
            driver = new FastPhantomJSDriver(DesiredCapabilities.phantomjs());
    } else {
      try {
        driver = new RemoteWebDriverSupplier(browser).get();
View Full Code Here

      }
      if ( "chrome".equalsIgnoreCase( browserDriver ) ) {
        return createAndStartChromeDriver();
      }
      if ( "opera".equalsIgnoreCase( browserDriver ) ) {
        return new SeleniumStarter( Driver.opera, new OperaDriver() );
      }
      if ( "htmlUnit".equalsIgnoreCase( browserDriver ) ) {
        BrowserVersion browser = BrowserVersion.getDefault();
        System.out.println( "HtmlUnit's default User Agent: " + browser.getUserAgent() );
        browser.setBrowserLanguage( "no-no" );
View Full Code Here

TOP

Related Classes of com.opera.core.systems.OperaDriver$OperaOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.