public void initialize() { URL url = null; WebDriver remoteWebDriver; try { url = createRemoteURL(); remoteWebDriver = new ScreenshootingRemoteWebDriver(wrapCommandExecutor(new HttpCommandExecutor(url)), desiredCapabilities); } catch (Throwable e) { if (verbose) { System.err.println("*********** Remote WebDriver Initialization Failure ************"); e.printStackTrace(System.err); } throw new UnsupportedOperationException("Connecting to remote URL '" + url + "' failed: " + e.getMessage(), e); } // Augmenter does not work. Resulting WebDriver is good for exclusive // screenshooting, but not normal operation as 'session is null' // remoteWebDriver = new Augmenter().augment(remoteWebDriver); // should allow instanceof TakesScreenshot. // To take out when this is fixed in Selenium 2.0b4 (beta 4) delegate.set(remoteWebDriver); }
public void initialize() { URL url = null; WebDriver remoteWebDriver; try { url = createRemoteURL(); remoteWebDriver = new ScreenshootingRemoteWebDriver(wrapCommandExecutor(new HttpCommandExecutor(url)), desiredCapabilities); } catch (Throwable e) { if (verbose) { System.err.println("*********** Remote WebDriver Initialization Failure ************"); e.printStackTrace(System.err); } throw new UnsupportedOperationException("Connecting to remote URL '" + url + "' failed: " + e.getMessage(), e); } // Augmenter does not work. Resulting WebDriver is good for exclusive // screenshooting, but not normal operation as 'session is null' // remoteWebDriver = new Augmenter().augment(remoteWebDriver); // should allow instanceof TakesScreenshot. // To take out when this is fixed in Selenium 2.0b4 (beta 4) delegate.set(remoteWebDriver); }