/** * Instantiates the @ManagedPages-annotated Pages instance using current WebDriver. * * @param testCase any object (testcase or other) containing injectable Serenity components */ protected static void injectAnnotatedPagesObjectInto(final Object testCase) { StepAnnotations.injectOptionalAnnotatedPagesObjectInto(testCase, getPages()); }
/** * 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()); }