예제 #1
0
 /**
  * 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());
 }
예제 #2
0
 /**
  * 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());
 }