public EtsyDotComStories() { if (System.getProperty("SAUCE_USERNAME") != null) { outputFormats = new Format[] {WEB_DRIVER_HTML}; driverProvider = new SauceWebDriverProvider(); contextView = new ContextView.NULL(); } else { outputFormats = new Format[] {new SeleniumContextOutput(seleniumContext), CONSOLE, WEB_DRIVER_HTML}; driverProvider = new TypeWebDriverProvider(); contextView = new LocalFrameContextView().sized(640, 120); } crossReference.excludeStoriesWithoutExecutedScenarios(true); }
protected StepMonitor createStepMonitor() { return new SeleniumStepMonitor( contextView, new SeleniumContext(), crossReference.getStepMonitor()); }