Repository navigation
[rust][java] Record sessions into Playwright-format traces via Selenium Manager - #18342
bonigarcia wants to merge 46 commits into
Conversation
…va binding - Fix POST body keep-alive bug (Connection: close, proper headers) - Fix recording lifecycle (signal handlers → archiver::package on shutdown) - Fix ZIP format (use ZipWriter from zip crate, remove manual ZIP) - Fix NPE in pipe executor (extend HttpCommandExecutor directly) - NDJSON trace format compatible with Playwright/Vibium viewers - Per-action screenshots -> PNG resources + screencast-frame events - Notification-specific action classification (page.*, element.*) - Java binding: setRecord() in Chrome/Firefox/Edge via AbstractDriverOptions - Java E2E test: 22 actions on bonigarcia.dev, traces to SELENIUM_TRACE_DIR
- Add ConsoleLog struct to recorder
- After each action, POST /session/{id}/log to capture console messages
- Emit console events in trace.trace (type: console)
- Java E2E test: navigate to console-logs.html
…Added for Vibium)
…um Manager Selenium Manager gets a pipe mode (--pipe, implied by --record <path>) that starts the driver behind a local HTTP proxy and records the session into a Playwright trace archive (schema v8, readable by the Playwright trace viewer and the Vibium record player). - Records non-GET commands with results/errors, a screenshot after visual actions, console messages and network responses. - Uses WebDriver BiDi when the binding does not use it itself (the proxy requests webSocketUrl and hides it from the binding); falls back to classic WebDriver otherwise. - Writes the trace before answering DELETE /session, so bindings can stop the process right after quitting (also on Windows). - Redacts text typed into password fields. - --driver-path lets bindings pass the driver they already resolved. Java: AbstractDriverOptions#setRecord (Beta) makes ChromeDriver, EdgeDriver and FirefoxDriver use TraceRecordingCommandExecutor, which starts Selenium Manager through the new SeleniumManager#startPipe.
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
/agentic_describe |
PR Summary by QodoRecord local WebDriver sessions as Playwright trace archives
AI Description
Diagram
High-Level Assessment
Files changed (19)
|
Code Review by Qodo
1. Remote credentials reach another host
|
| write_response(stream, status, &content_type, &response_body).await?; | ||
| stream.flush().await?; | ||
|
|
||
| if route.is_delete_session() { | ||
| self.session_ended.store(true, Ordering::SeqCst); |
There was a problem hiding this comment.
4. A disconnected quit leaves the driver alive 🐞 Bug ☼ Reliability
handle_connection sets session_ended only after writing and flushing the DELETE response, and both operations can return early with an error. If the client disconnects after sending the quit command, the trace may be written but the pipe keeps waiting and does not stop its driver process.
Agent Prompt
## Issue description
A failed DELETE response write prevents pipe shutdown after the driver session has ended.
## Fix Focus Areas
- rust/src/pipe.rs[224-235]
- rust/src/pipe.rs[95-112]
## Recommended Fix
Mark the session ended independently of successful socket writes once deletion has been processed, while preserving any write error for diagnostics. Test a client that disconnects immediately after sending DELETE.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| pub fn start_action(&mut self, http_method: &str, command_path: &str, body: &[u8]) -> usize { | ||
| let request_body = serde_json::from_slice::<Value>(body).ok(); | ||
| let info = classify_command(http_method, command_path, request_body.as_ref()); | ||
| self.actions.push(RecordedAction { | ||
| http_method: http_method.to_string(), | ||
| command_path: command_path.to_string(), | ||
| request_body, |
There was a problem hiding this comment.
6. Large uploads exhaust recording memory 🐞 Bug ➹ Performance
start_action keeps each parsed non-GET request body in the in-memory recording until the session ends, despite bounded limiting only its eventual archive representation. A session that sends large file-upload payloads or repeated large scripts accumulates their full JSON bodies alongside screenshots and can exhaust the Selenium Manager process.
Agent Prompt
## Issue description
Recorded commands retain full large bodies for the lifetime of a session.
## Fix Focus Areas
- rust/src/recorder.rs[98-113]
- rust/src/archiver.rs[194-203]
- rust/src/archiver.rs[235-243]
## Recommended Fix
Apply size limits and sensitive-payload handling before storing command bodies, rather than only during archive serialization. Exercise repeated large requests and verify bounded memory use and useful trace metadata.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| return self(); | ||
| } | ||
|
|
||
| private @Nullable String recordPath; |
There was a problem hiding this comment.
9. Recording is silently dropped after merge 🐞 Bug ≡ Correctness
setRecord stores the path in a plain Java field (recordPath) instead of a capability, and ChromeOptions.merge, like the other options' merge, builds a new instance by copying capabilities only. Code such as new ChromeDriver(options.merge(caps)) starts a normal session with no recording and no warning, and the same applies to any path that copies options through Capabilities.
Agent Prompt
## Issue description
The trace path set via setRecord lives in a Java field that `merge()` does not copy, so merged options lose recording silently.
## Fix Focus Areas
- java/src/org/openqa/selenium/remote/AbstractDriverOptions.java[114-142]
- java/src/org/openqa/selenium/chrome/ChromeOptions.java[60-70]
## Recommended Fix
Store the path as a vendor capability (e.g. `se:record`) that the local drivers remove before the new-session request is sent. Alternatively, copy `recordPath` in each `merge` implementation (Chrome, Edge, Firefox) when the source is an AbstractDriverOptions. Add a test that `options.setRecord(x).merge(caps).getRecordPath()` returns x.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
The recording tests drive Selenium Manager's pipe mode, so they fail where the bundled manager is a stub (RBE, --manager=stub). Move them to their own suites tagged se-manager, which get the manager built from source and network access, and drop the -remote variants: recording only applies when the binding starts the driver itself.
|
Code review by qodo was updated up to the latest commit 6ebb42e |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…onnection Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ording Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cription id Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ection is lost Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, failing closed Internal requests of the proxy carry the binding's credentials, focus is followed into shadow roots and frames, and a check that cannot be made counts as a password field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ad of the command line Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…honor the client proxy Credentials (URL user info or ClientConfig credentials) reach Selenium Manager through SE_UPSTREAM_AUTHORIZATION, the client proxy becomes --proxy for the remote end, and the local hop to Selenium Manager bypasses it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
/agentic_review |
| let connected = match capabilities["webSocketUrl"].as_str().map(str::to_string) { | ||
| Some(url) if headers.is_empty() => { | ||
| self.connect_bidi(&url, &self.upstream_headers).await |
There was a problem hiding this comment.
1. Remote credentials reach another host 🐞 Bug ⛨ Security
on_session_created passes authorization headers intended for the configured upstream to BiDiClient::connect without checking the returned webSocketUrl destination. When a remote end returns a WebSocket URL on another host, recording sends those credentials in that host’s handshake even if the binding did not request BiDi.
Agent Prompt
## Issue description
Recording forwards upstream authorization to a WebSocket destination supplied by the session response, without checking whether that destination is trusted to receive it.
## Fix Focus Areas
- rust/src/pipe.rs[420-429]
- rust/src/bidi.rs[116-126]
## Recommended Fix
Validate the WebSocket destination against an explicit trusted origin or authorization policy before attaching upstream credentials. Do not send credentials to an untrusted WebSocket URL; add a test with a cross-origin URL.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| let builder = match proxy.map(reqwest::Proxy::all) { | ||
| Some(Ok(proxy)) => Client::builder().proxy(proxy), | ||
| _ => Client::builder(), | ||
| }; | ||
| self.client = builder.build().unwrap_or_else(|_| local_http_client()); |
There was a problem hiding this comment.
2. Invalid proxies send traffic directly 🐞 Bug ⛨ Security
for_upstream selects an ordinary client when parsing the requested proxy fails, and also falls back to one when building the configured client fails. With an invalid --proxy, forwarded WebDriver requests can bypass the caller’s intended network route, including requests carrying upstream authorization.
Agent Prompt
## Issue description
An invalid proxy or client-build error silently produces a client without the requested proxy.
## Fix Focus Areas
- rust/src/pipe.rs[248-253]
- rust/src/pipe.rs[141-151]
## Recommended Fix
Return proxy parsing and client construction errors from upstream setup and stop startup rather than substituting a default client. Test that an invalid proxy cannot result in an upstream request.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| .set_timeout(cli.timeout) | ||
| .and_then(|_| selenium_manager.set_proxy(cli.proxy.unwrap_or_default())) | ||
| .and_then(|_| selenium_manager.set_insecure(cli.insecure)) | ||
| .and_then(|_| selenium_manager.stats()) | ||
| .and_then(|_| pipe::run(options, selenium_manager.get_logger())); |
There was a problem hiding this comment.
6. Insecure mode cannot reach private grid 🐞 Bug ≡ Correctness
The upstream branch applies --insecure to selenium_manager but does not pass it into PipeOptions or the pipe’s HTTP client. An HTTPS remote end with a certificate that requires this flag still fails TLS validation for recorded WebDriver requests.
Agent Prompt
## Issue description
Upstream pipe mode accepts `--insecure` but its requests use a separately constructed client that does not receive the setting.
## Fix Focus Areas
- rust/src/main.rs[323-339]
- rust/src/pipe.rs[92-101]
- rust/src/pipe.rs[248-253]
## Recommended Fix
Pass the insecure setting into `PipeOptions` and apply it when building the upstream HTTP client, consistently with Selenium Manager’s existing HTTP-client configuration. Test an HTTPS upstream with an untrusted certificate.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| ExternalProcess pipe = SeleniumManager.getInstance().startPipe(arguments, environment); | ||
| try { | ||
| URL proxyUrl = awaitProxyUrl(pipe); | ||
| LOG.fine(String.format("Recording session to %s through %s", tracePath, proxyUrl)); | ||
| // Selenium Manager runs on this machine: an HTTP proxy only applies beyond it. | ||
| ClientConfig local = | ||
| clientConfig.proxy() == null ? clientConfig : clientConfig.proxy(Proxy.NO_PROXY); | ||
| return new TraceRecordingCommandExecutor(additionalCommands, proxyUrl, local, pipe); |
There was a problem hiding this comment.
7. Custom certificates stop remote recording 🐞 Bug ≡ Correctness
startRemote moves upstream HTTPS requests into a Rust client without carrying over ClientConfig.sslContext(). A remote session that works with the caller’s custom trust context can fail certificate validation as soon as recording is enabled.
Agent Prompt
## Issue description
Remote recording replaces Java’s configured HTTPS client with a Rust client that does not receive its custom trust context.
## Fix Focus Areas
- java/src/org/openqa/selenium/remote/service/TraceRecordingCommandExecutor.java[129-169]
- rust/src/pipe.rs[248-253]
## Recommended Fix
Provide a supported, secure way to apply the caller’s custom certificate trust to upstream requests, or reject this configuration explicitly before launching the recording proxy. Test a private-CA HTTPS remote end with `ClientConfig.sslContext()`.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| if types_keys && !hide_keys { | ||
| hide_keys = self.password_field_focused().await; | ||
| } |
There was a problem hiding this comment.
3. Recording dismisses alerts the test expects 🐞 Bug ≡ Correctness
After a recorded key-action chain runs, handle_connection calls password_field_focused(), which sends a classic POST /execute/sync to the driver before the binding gets its response. The BiDi input.performActions path at line 595 does the same. When the keys open a user prompt (for example, pressing Enter submits a form that calls alert()), the driver's default `dismiss and notify` prompt handling closes the prompt during this internal script. The test's next switchTo().alert() then fails, so turning on recording changes how the test behaves.
Agent Prompt
## Issue description
The password-focus check runs a classic `POST /execute/sync` before and after key action chains. If the chain opens an alert, the driver's default unhandled-prompt behaviour dismisses it during this internal call, which changes the test's outcome.
## Fix Focus Areas
- rust/src/pipe.rs[300-334]
- rust/src/pipe.rs[572-596]
- rust/src/pipe.rs[617-640]
## Recommended Fix
Before the post-chain check, send `GET /session/{id}/alert/text` (which does not trigger prompt handling). If a prompt is open, skip the script and redact the keys (fail closed). When a BiDi connection exists, run the check with `script.evaluate`/`script.callFunction` over BiDi instead, because BiDi does not apply classic prompt handling. Add a test where a key action triggers `alert()` and confirm the alert is still open afterwards.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| if (recordPath != null) { | ||
| return TraceRecordingCommandExecutor.startRemote( | ||
| clientConfig.baseUrl(), capabilities, Path.of(recordPath), clientConfig); | ||
| } |
There was a problem hiding this comment.
8. A failed session start leaves processes running 🐞 Bug ☼ Reliability
createExecutor starts a long-lived Selenium Manager pipe before a session exists, but RemoteWebDriver constructor cleanup calls quit(), which returns immediately when sessionId is null and never reaches closeExecutor() or stopPipe(). If NEW_SESSION fails because of bad capabilities, a Grid refusal, or a browser crash, the pipe keeps polling, its recording remains unfinalized, and in local mode the driver it started can also remain running.
Agent Prompt
## Issue description
A failed `NEW_SESSION` leaves the recording executor open because constructor cleanup calls `quit()` before a session ID exists. The Selenium Manager pipe process, and the driver it started in local mode, can remain running.
## Fix Focus Areas
- java/src/org/openqa/selenium/remote/service/TraceRecordingCommandExecutor.java[176-182]
- java/src/org/openqa/selenium/remote/RemoteWebDriver.java[203-215]
- java/src/org/openqa/selenium/remote/RemoteWebDriver.java[275-286]
## Recommended Fix
In `TraceRecordingCommandExecutor.execute`, wrap `super.execute` for `DriverCommand.NEW_SESSION`. If it throws or returns a response with no session ID or an error value, call `close()`/`stopPipe()` before propagating the failure, as `DriverCommandExecutor` does for its service. Ensure constructor failure closes an already-started recording executor even when no session ID was assigned. Add a failed-`NEW_SESSION` test in which the remote end rejects the session and verify that Selenium Manager exits.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| let builder = match proxy.map(reqwest::Proxy::all) { | ||
| Some(Ok(proxy)) => Client::builder().proxy(proxy), | ||
| _ => Client::builder(), | ||
| }; | ||
| self.client = builder.build().unwrap_or_else(|_| local_http_client()); |
There was a problem hiding this comment.
9. Recording a proxied grid loses bidi data 🐞 Bug ≡ Correctness
for_upstream applies --proxy to the reqwest HTTP client, but connect_bidi passes no proxy configuration to BiDiClient::connect, which opens the upstream WebSocket directly with connect_async. When the endpoint is reachable only through the proxy, session creation can succeed while BiDi connection fails, forcing recording back to classic WebDriver without console or network data and preventing bindings that requested BiDi from using the shared connection; when direct access exists, BiDi traffic takes a different route.
Agent Prompt
## Issue description
In `--upstream` mode, `--proxy` applies to HTTP WebDriver requests but not to the upstream BiDi WebSocket. An upstream whose WebSocket endpoint is reachable only through the proxy can accept session creation while BiDi connection and event recording fail.
## Fix Focus Areas
- rust/src/pipe.rs[244-260]
- rust/src/pipe.rs[420-470]
- rust/src/bidi.rs[116-130]
## Recommended Fix
Store the proxy URL in `ProxyState` and pass the upstream proxy configuration to `BiDiClient::connect`. When a proxy is set, open a TCP connection to it, send `CONNECT host:port` with `Proxy-Authorization` if the proxy URL has user info, wrap the tunnelled stream in TLS for `wss`, and establish the WebSocket with `tokio_tungstenite::client_async_tls` or `client_async`. Respect `NO_PROXY` and system proxy settings the same way reqwest does, and test recording against an upstream whose WebSocket endpoint is reachable only through the proxy.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| /// Registers a BiDi command sent by the binding; `None` when it is not recorded (queries). | ||
| pub fn start_bidi_action(&mut self, method: &str, params: &Value) -> Option<usize> { | ||
| let mut request_body = params.clone(); | ||
| redact_secrets(&mut request_body); |
There was a problem hiding this comment.
10. Header secrets in bidi commands reach the trace 🐞 Bug ⛨ Security
start_bidi_action records binding BiDi commands after redact_secrets, which masks only values
whose object key looks secret (key, secret, password, token) or a cookie object. Header
entries in network.continueRequest, network.provideResponse or network.continueResponse are
shaped {name: "Authorization", value: {type, value}}, and cookies arrays use the same shape, so
the bearer tokens and cookie values pass through untouched. A test that injects an auth header or
cookie through BiDi request interception writes it into trace.trace, even though network events in
the same archive already redact these headers.
Agent Prompt
## Issue description
BiDi network command parameters carry headers and cookies as `{name, value}` objects. `redact_secrets` matches only object keys, so Authorization/Cookie values and cookie values in `cookies` arrays are written to the trace.
## Fix Focus Areas
- rust/src/recorder.rs[398-447]
- rust/src/recorder.rs[451-460]
## Recommended Fix
In `redact_secrets`, when an object has a string `name` field and a `value` field: if `is_sensitive_header(name)` or `is_secret_name(name)` is true, replace the value (or its inner `value` for BiDi bytes values) with `REDACTED`. Also treat a `cookies` array key like `cookie`, calling `redact_cookie_value` on each element. Add unit tests for `network.continueRequest` with Authorization/Cookie headers and cookies.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| self.upstream_headers = authorization | ||
| .map(str::to_string) | ||
| .or_else(|| upstream_authorization(url)) | ||
| .map(|value| vec![("Authorization".to_string(), value)]) | ||
| .unwrap_or_default(); |
There was a problem hiding this comment.
11. Local processes can use stored grid credentials 🐞 Bug ⛨ Security
In --upstream mode, for_upstream stores SE_UPSTREAM_AUTHORIZATION (or URL user info) in upstream_headers, and forward adds it to every request that arrives without an Authorization header. The proxy listens on an unauthenticated 127.0.0.1 port. While a recording runs, any other local user or process can send WebDriver requests to that port (including POST /session) and have them authenticated against the Grid or cloud account. Before this change, those requests would be rejected by the remote end's basic auth.
Agent Prompt
## Issue description
The local recording proxy adds the upstream credentials to any request arriving on its loopback port without authentication, so other local processes can use the Grid credentials.
## Fix Focus Areas
- rust/src/pipe.rs[140-160]
- rust/src/pipe.rs[262-275]
- rust/src/pipe.rs[369-397]
## Recommended Fix
Generate a random token at startup and include it in the announced `proxy_url` as a path prefix (e.g. `http://127.0.0.1:port/<token>`). Reject, or forward without injected credentials, any request (including WebSocket upgrades) whose path lacks the prefix, and strip the prefix before forwarding. Java already uses the announced URL as the base, so no binding change is needed. Also reject requests whose Host header is not the loopback address, to block DNS rebinding.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| static @Nullable String proxyArgument(ClientConfig clientConfig) { | ||
| Proxy proxy = clientConfig.proxy(); | ||
| if (proxy == null || proxy.type() != Proxy.Type.HTTP) { | ||
| return null; | ||
| } | ||
| InetSocketAddress address = (InetSocketAddress) proxy.address(); | ||
| return String.format("http://%s:%d", address.getHostString(), address.getPort()); |
There was a problem hiding this comment.
20. Socks proxy settings bypassed when recording 🐞 Bug ≡ Correctness
proxyArgument returns null for SOCKS proxies and builds proxy URLs with unbracketed IPv6 literals, while for_upstream silently falls back to a default client when it cannot parse a proxy URL. When recording a remote session, launch also switches the Java binding to Proxy.NO_PROXY, so a configured SOCKS proxy is lost and an IPv6 proxy URL can be ignored, leaving Grid traffic to use default routing without warning.
Agent Prompt
## Issue description
The recording path loses a caller-configured SOCKS proxy when upstream requests move from Java to Selenium Manager. It also constructs invalid proxy URLs for IPv6 hosts, which the upstream client silently ignores.
## Fix Focus Areas
- java/src/org/openqa/selenium/remote/service/TraceRecordingCommandExecutor.java[144-148]
- java/src/org/openqa/selenium/remote/service/TraceRecordingCommandExecutor.java[289-297]
- rust/src/pipe.rs[248-253]
## Recommended Fix
Pass supported SOCKS settings through to the upstream client by mapping `Proxy.Type.SOCKS` to `socks5://host:port` with reqwest's `socks` feature, or reject or warn about unsupported proxy types before recording starts. Bracket IPv6 literals when constructing proxy URLs. In `for_upstream`, return an error or at least log a warning if `reqwest::Proxy::all` fails rather than silently building a direct client. Add a test covering a SOCKS-only remote endpoint.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
Code review by qodo was updated up to the latest commit a1c5dda |
🔗 Related Issues
Reference implementation for the ADR proposed in #18341. Please discuss the design there; this PR is for reviewing the code.
💥 What does this PR do?
Adds trace recording. With one option the session is saved as a Playwright trace archive (
trace.zip), which opens in the Playwright trace viewer, the Vibium record player and the WebdriverIO trace viewer.Selenium Manager (Rust)
--pipe, implied by--record <path>. Selenium Manager runs a local HTTP proxy (127.0.0.1) and prints{"proxy_url": ...}. In front of a local driver it starts the driver the binding resolved (--driver-path); in front of a remote end it forwards to it (--upstream <url>) and manages no driver or browser.GETclassic command and every non-query BiDi command of the binding, with its result or error, plus a screenshot after visual actions.DELETE /session, so it is complete even when the binding stops the process straight away (on Windows, the process is killed, not signalled).{"trace_error": ...}line.Java
AbstractDriverOptions#setRecord(String)/#getRecordPath()(@Beta).TraceRecordingCommandExecutor(new,@Beta), withstart(local driver) andstartRemote.ChromeDriver,EdgeDriver,FirefoxDriverand theRemoteWebDriverconstructors use it when recording is enabled; nothing changes otherwise.ClientConfigcredentials) reach Selenium Manager throughSE_UPSTREAM_AUTHORIZATION, never its arguments; aClientConfigproxy becomes--proxy.SeleniumManager#startPipe(List<String>)and#startPipe(List<String>, Map<String, String>)(new,@Beta);ChromiumDriverCommandExecutor#withChromiumCommands(new,@Beta).🔧 Implementation Notes
tokio-tungsteniteis the only new crate family.DriverFinderas usual and passes the result with--driver-path.bidi/logandbidi/moduleare now visible to the Chrome and Firefox test packages.Tests
webSocketUrlrewriting, theWebSocket endpoint, id rewriting and event filtering over a fake BiDi endpoint, legacyunsubscribe, loss of the upstream connection, redaction,--upstream(credentials, proxy) andthe trace archive layout.ChromeRecordingTestandFirefoxRecordingTest: recording without BiDi in the binding, andwith the binding using BiDi (LogInspector) at the same time.RemoteRecordingTest:RemoteWebDriveragainst a Selenium Grid standalone, and a session thatcannot be created.TraceRecordingCommandExecutorTest: ready line, trace errors, credentials and proxy arguments.How to run the tests and get the traces locally:
🤖 AI assistance
💡 Additional Considerations
wss://BiDi endpoints need TLS in Selenium Manager's WebSocket client (a dependency change, left out of this PR); those sessions are recorded with classic WebDriver.RemoteWebDriver.builder(); DOM snapshots and video.🔄 Types of changes
🤖 Generated with Claude Code. Manually reviewed.