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 Detail

      • uniqueSession

        boolean uniqueSession
        Default:
        false
      • clearCookies

        ClearCookiesPolicy clearCookies
        Default:
        net.thucydides.core.annotations.ClearCookiesPolicy.BeforeEachTest
      • driver

        String driver
        Default:
        ""
      • options

        String options
        Default:
        ""