/** * Instantiates the @ManagedPages-annotated Pages instance using current WebDriver. */ protected void injectScenarioStepsInto(final Object testCase) { StepAnnotations.injectScenarioStepsInto(testCase, stepFactory); }
/** * Injects instrumented step classes into any @Step annotated fields of the specified class. * * @param testCase */ public void initialize(Object testCase) { StepAnnotations.injectScenarioStepsInto(testCase, stepFactory); }
/** * Injects instrumented step classes into any @Step annotated fields of the specified class. * * @param testCase */ public void initialize(Object testCase) { StepAnnotations.injectScenarioStepsInto(testCase, stepFactory); }
/** * Instantiates the @ManagedPages-annotated Pages instance using current WebDriver. * @param testCase any object (testcase or other) containing injectable Serenity components */ public static void injectScenarioStepsInto(final Object testCase) { StepAnnotations.injectScenarioStepsInto(testCase, getStepFactory()); }
/** * Instantiates the @ManagedPages-annotated Pages instance using current WebDriver. */ public static void injectScenarioStepsInto(final Object testCase) { StepAnnotations.injectScenarioStepsInto(testCase, getStepFactory()); }
/** * Injects instrumented step classes into any @Step annotated fields of the specified class. * * @param testCase */ public void initialize(Object testCase) { StepAnnotations.injector().injectScenarioStepsInto(testCase, stepFactory); }
/** * Instantiates the @ManagedPages-annotated Pages instance using current WebDriver. * @param testCase any object (testcase or other) containing injectable Serenity components */ public static void injectScenarioStepsInto(final Object testCase) { StepAnnotations.injector().injectScenarioStepsInto(testCase, getStepFactory()); }
public Object createInstanceOfType(Class<?> type) { Object stepsInstance = getContext().newInstanceOf(type); StepAnnotations.injectScenarioStepsInto(stepsInstance, getStepFactory()); ThucydidesWebDriverSupport.initializeFieldsIn(stepsInstance); injectDependencies(stepsInstance); return stepsInstance; }
@Override public Object createInstanceOfType(Class<?> type) { Object stepsInstance = getContext().newInstanceOf(type); StepAnnotations.injector().injectScenarioStepsInto(stepsInstance, getStepFactory()); ThucydidesWebDriverSupport.initializeFieldsIn(stepsInstance); injectDependencies(stepsInstance); return stepsInstance; }