private static void initStepListener() { Configuration configuration = Injectors.getInjector().getInstance(Configuration.class); File outputDirectory = configuration.getOutputDirectory(); StepListener listener = new BaseStepListener(outputDirectory, getPages()); stepListenerThreadLocal.set(listener); StepEventBus.getEventBus().registerListener(getStepListener()); }
private long getLocatorTimeout() { if (StepEventBus.getEventBus().aStepInTheCurrentTestHasFailed() || (MethodTiming.forThisThread().isInQuickMethod())) { return 0; } else { return TimeUnit.SECONDS.convert(implicitTimeoutInMilliseconds, TimeUnit.MILLISECONDS); } }
private void notifyScreenChange() { StepEventBus.getEventBus().notifyScreenChange(); }
protected boolean driverIsDisabled() { return StepEventBus.getEventBus().webdriverCallsAreSuspended(); }
protected void notifyScreenChange() { StepEventBus.getEventBus().notifyScreenChange(); }
private boolean isEnabled() { return !StepEventBus.getEventBus().webdriverCallsAreSuspended(); }
@Step public void step_with_screen_changes() { StepEventBus.getEventBus().notifyScreenChange(); }
public static void takeScreenshot() { StepEventBus.getEventBus().takeScreenshot(); }