public final class WebUiCapabilities
Factory for resolving driver capabilities to their protocol/driver-specific implementation, depending on what the given driver supports. BiDi is preferred, then CDP, then a driver-native API, falling back to a screenshot-stitching library when nothing more specific is available.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static Optional<HasBasicAuthentication> |
getBasicAuthentication(WebDriver driver)CDP is checked before BiDi for Chromium browsers because BiDi network interception is not reliable for Basic Authentication on Chromium at this time; browsers supporting neither fall back to embedding credentials directly in the URL. |
|
public static Optional<HasFullPageScreenshotCapture> |
getFullPageScreenshotCapture(WebDriver driver, IDriverType browser) |
|
public static Optional<HasNetworkTrace> |
getNetworkTrace(WebDriver driver)Network tracing is currently only supported over CDP; BiDi drivers are not yet covered. |
CDP is checked before BiDi for Chromium browsers because BiDi network interception is not reliable for Basic Authentication on Chromium at this time; browsers supporting neither fall back to embedding credentials directly in the URL.
Network tracing is currently only supported over CDP; BiDi drivers are not yet covered.