LaunchPlaywrightBrowser

class LaunchPlaywrightBrowser @JvmOverloads constructor(server: Http4kServer, browserType: Playwright.() -> BrowserType = Playwright::chromium, launchOptions: BrowserType.LaunchOptions = LaunchOptions(), createPlaywright: () -> Playwright = ::create) : ParameterResolver, BeforeTestExecutionCallback, AfterTestExecutionCallback(source)

Constructors

Link copied to clipboard
constructor(server: Http4kServer, browserType: Playwright.() -> BrowserType = Playwright::chromium, launchOptions: BrowserType.LaunchOptions = LaunchOptions(), createPlaywright: () -> Playwright = ::create)
constructor(http: HttpHandler, browserType: Playwright.() -> BrowserType = Playwright::chromium, launchOptions: BrowserType.LaunchOptions = LaunchOptions(), createPlaywright: () -> Playwright = ::create, serverFn: (Int) -> ServerConfig = ::SunHttp)
constructor(poly: PolyHandler, serverFn: (Int) -> PolyServerConfig, browserType: Playwright.() -> BrowserType = Playwright::chromium, launchOptions: BrowserType.LaunchOptions = LaunchOptions(), createPlaywright: () -> Playwright = ::create)

Functions

Link copied to clipboard
open override fun afterTestExecution(context: ExtensionContext)
Link copied to clipboard
open override fun beforeTestExecution(context: ExtensionContext)
@API(status = API.Status.MAINTAINED, since = "5.13.3")
open fun getTestInstantiationExtensionContextScope(rootContext: ExtensionContext?): TestInstantiationAwareExtension.ExtensionContextScope?
Link copied to clipboard
open override fun resolveParameter(pc: ParameterContext, ec: ExtensionContext): Http4kBrowser
Link copied to clipboard
open override fun supportsParameter(pc: ParameterContext, ec: ExtensionContext): Boolean