Skip to content

Resolve #356 fix unwanted log collection#361

Merged
craigfowler merged 4 commits into
masterfrom
356-unwanted-log-collection
Jun 9, 2026
Merged

Resolve #356 fix unwanted log collection#361
craigfowler merged 4 commits into
masterfrom
356-unwanted-log-collection

Conversation

@craigfowler

Copy link
Copy Markdown
Member

Resolves #356.

Turns out that I need to use session storage, because Firefox
won't allow me to access `globalThis` (IE: `window`) from the
WebDriver.  Session storage is a decent place to keep the logs
until they are recovered.
It seems that perhaps remote WebDriver is not the problem here, and it might relate to the use of `globalThis`, which I've discovered to be unreliable. 

I'm going to try removing this restriction to see if the problems I experienced were actually caused by something else. It might be I can support remote drivers with this technique after all.
Removed the static method NeedsJavaScriptWorkaroundForLogs that checks for WebDriver quirks related to log retrieval.

It's no longer required.
@craigfowler craigfowler changed the title Resole #356 fix unwanted log collection Resolve #356 fix unwanted log collection Jun 9, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jun 9, 2026

Copy link
Copy Markdown

@craigfowler
craigfowler merged commit 6a03614 into master Jun 9, 2026
8 of 11 checks passed
@craigfowler
craigfowler deleted the 356-unwanted-log-collection branch June 9, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Selenium is using JS to get logs even when using a native-logs-capable browser

1 participant