Пример #1
0
  /**
   * 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);
  }
Пример #2
0
 private static void setupWebdriverManager() {
   setupWebdriverManager(Injectors.getInjector().getInstance(WebdriverManager.class));
 }
Пример #3
0
 protected static void stopUsingMockDriver() {
   setupWebdriverManager();
 }