Annotation Type Managed


@Retention(RUNTIME)
@Target(FIELD)
public @interface Managed
Annotation that marks a WebDriver field as one that is managed by the Test Runner. The Serenity Test Runner will instantiate this WebDriver before the tests start, and close it once they have all finished.
  • Element Details

    • uniqueSession

      boolean uniqueSession
      Default:
      false
    • clearCookies

      ClearCookiesPolicy clearCookies
      Default:
      BeforeEachTest
    • driver

      java.lang.String driver
      Default:
      ""
    • options

      java.lang.String options
      Default:
      ""