/**
   * Initialize Thucydides-related fields in the specified object. This includes managed WebDriver
   * instances,
   */
  public static void initialize(final Object testCase) {
    setupWebDriverFactory();
    setupWebdriverManager();

    initPagesObjectUsing(getDriver());
    initStepListener();
    initStepFactoryUsing(getPages());

    injectDriverInto(testCase);
    injectAnnotatedPagesObjectInto(testCase);
    injectScenarioStepsInto(testCase);
  }
 private static void setupWebdriverManager() {
   setupWebdriverManager(Injectors.getInjector().getInstance(WebdriverManager.class));
 }
 protected static void stopUsingMockDriver() {
   setupWebdriverManager();
 }