toggle menu
http4k
LOCAL
jvm
switch theme
search in API
http4k-testing-playwright
/
org.http4k.playwright
/
Http4kBrowser
Http4k
Browser
class
Http4kBrowser
(
delegate
:
Browser
,
val
baseUri
:
Uri
)
:
Browser
Custom Page implementation to add convenience functions to the standard Playwright model
Members
Constructors
Http4k
Browser
Link copied to clipboard
constructor
(
delegate
:
Browser
,
baseUri
:
Uri
)
Properties
base
Uri
Link copied to clipboard
val
baseUri
:
Uri
Functions
browser
Type
Link copied to clipboard
open
override
fun
browserType
(
)
:
BrowserType
close
Link copied to clipboard
open
override
fun
close
(
)
open
override
fun
close
(
options
:
Browser.CloseOptions
)
contexts
Link copied to clipboard
open
override
fun
contexts
(
)
:
MutableList
<
BrowserContext
>
is
Connected
Link copied to clipboard
open
override
fun
isConnected
(
)
:
Boolean
new
Browser
CDPSession
Link copied to clipboard
open
override
fun
newBrowserCDPSession
(
)
:
CDPSession
new
Context
Link copied to clipboard
open
fun
newContext
(
)
:
BrowserContext
open
override
fun
newContext
(
options
:
Browser.NewContextOptions
)
:
BrowserContext
new
Page
Link copied to clipboard
open
override
fun
newPage
(
options
:
Browser.NewPageOptions
)
:
Page
open
override
fun
newPage
(
)
:
HttpPage
off
Disconnected
Link copied to clipboard
open
override
fun
offDisconnected
(
handler
:
Consumer
<
Browser
>
)
on
Disconnected
Link copied to clipboard
open
override
fun
onDisconnected
(
handler
:
Consumer
<
Browser
>
)
start
Tracing
Link copied to clipboard
open
fun
startTracing
(
)
open
fun
startTracing
(
page
:
Page
)
open
override
fun
startTracing
(
page
:
Page
,
options
:
Browser.StartTracingOptions
)
stop
Tracing
Link copied to clipboard
open
override
fun
stopTracing
(
)
:
ByteArray
version
Link copied to clipboard
open
override
fun
version
(
)
:
String