Annotation Interface BrowserFactory


@Retention(RUNTIME) @Target(TYPE) @Inherited public @interface BrowserFactory

BrowserFactory annotation is used to define which TestBenchBrowserFactory implementation to use in a test.

TestBenchBrowserFactory should be implemented by another class, or DefaultBrowserFactory should be extended if a different default browser configuration is needed (for instance, to set the default version of a specific browser).

Example:
@BrowserFactory(DefaultBrowserFactory.class)
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      Class<?> value
      Default:
      com.vaadin.testbench.parallel.TestBenchBrowserFactory.class