Package io.karatelabs.driver.cdp
Class CdpDriverOptions.Builder
java.lang.Object
io.karatelabs.driver.cdp.CdpDriverOptions.Builder
- Enclosing class:
CdpDriverOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOptions(List<String> options) build()executable(String path) headless(boolean headless) highlight(boolean enabled) highlightDuration(int millis) pageLoadStrategy(PageLoadStrategy strategy) port(int port) retryCount(int count) retryInterval(int millis) Set driver scope (default: "scenario").screenshotOnFailure(boolean enabled) stop(boolean stop) Keep the browser process alive after the scenario ends (default: true = quit).timeout(int millis) userDataDir(String path) webSocketUrl(String url)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
timeout
-
timeout
-
retryCount
-
retryInterval
-
headless
-
host
-
port
-
executable
-
userDataDir
-
userAgent
-
screenshotOnFailure
-
highlight
-
highlightDuration
-
pageLoadStrategy
-
addOptions
-
addOption
-
webSocketUrl
-
scope
Set driver scope (default: "scenario").- "scenario" - driver released at scenario end (pooled behavior)
- "caller" - driver propagates to caller hierarchy (V1 behavior)
-
stop
Keep the browser process alive after the scenario ends (default: true = quit). Whenfalse, also bypasses the suite driver pool so the instance is not shared across scenarios. -
build
-