Class BrowserStrategyExtension

  • All Implemented Interfaces:
    org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.Extension

    public class BrowserStrategyExtension
    extends java.lang.Object
    implements org.junit.jupiter.api.extension.AfterAllCallback
    By using this extension browser will be automatically closed after all tests in the current container.
    To use this extension, extend your test class with it:
    @ExtendWith({BrowserStrategyExtension.class}
    Or register extension in test class:
    @RegisterExtension static BrowserStrategyExtension browserStrategy = new BrowserStrategyExtension();
    Since:
    4.12.2
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterAll​(org.junit.jupiter.api.extension.ExtensionContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BrowserStrategyExtension

        public BrowserStrategyExtension()
    • Method Detail

      • afterAll

        public void afterAll​(org.junit.jupiter.api.extension.ExtensionContext context)
        Specified by:
        afterAll in interface org.junit.jupiter.api.extension.AfterAllCallback