Skip to content

Conversation

@selenium-ci
Copy link
Member

@selenium-ci selenium-ci commented Oct 25, 2025

User description

This PR updates the API documentation for version 4.38.0-all.


PR Type

Documentation


Description

  • Auto-generated API documentation update for Selenium 4.38.0-all

  • Adds comprehensive HTML documentation for DevTools V142 domain adapters and related classes

  • Includes new documentation for multiple DevTools domains: Debugger, Browser, Animation, DOM, CSS, Emulation, Accessibility, Audits, and many others

  • Updates BiDi documentation with parameter changes to UserPromptClosedEventArgs class

  • Removes outdated V139 DevTools documentation files

  • Updates base class derived types references to reflect version progression (V140, V141, V142)

  • Corrects source code line number references in documentation files


Diagram Walkthrough

flowchart LR
  A["V139 DevTools<br/>Documentation"] -->|Remove| B["Documentation<br/>Update"]
  C["V142 DevTools<br/>Domains"] -->|Add| B
  D["BiDi Classes<br/>Updates"] -->|Update| B
  B -->|Generate| E["4.38.0-all<br/>API Docs"]
Loading

File Walkthrough

Relevant files
Documentation
8 files
OpenQA.Selenium.DevTools.V142.Debugger.DebuggerAdapter.html
New DevTools V142 DebuggerAdapter API documentation           

docs/api/dotnet/webdriver/OpenQA.Selenium.DevTools.V142.Debugger.DebuggerAdapter.html

  • Added new auto-generated HTML documentation file for DebuggerAdapter
    class in DevTools V142
  • Includes comprehensive API documentation with constructor, properties,
    methods, and events
  • Documents 40+ debugger command methods like SetBreakpoint, StepInto,
    Resume, etc.
  • Provides event documentation for BreakpointResolved, Paused, Resumed,
    and ScriptParsed
+1838/-0
OpenQA.Selenium.BiDi.BrowsingContext.UserPromptClosedEventArgs.html
Updated UserPromptClosedEventArgs with UserText parameter

docs/api/dotnet/webdriver/OpenQA.Selenium.BiDi.BrowsingContext.UserPromptClosedEventArgs.html

  • Updated constructor signature to include UserText parameter as string?
  • Modified UserText property from [JsonInclude] getter-only to get;
    init; accessor
  • Updated source code links to reflect line number changes (from line 24
    to line 22)
  • Adjusted documentation to reflect the new constructor parameter
+11/-10 
OpenQA.Selenium.DevTools.V142.DevToolsSessionDomains.html
DevTools V142 Session Domains API documentation                   

docs/api/dotnet/webdriver/OpenQA.Selenium.DevTools.V142.DevToolsSessionDomains.html

  • Added comprehensive HTML documentation for the DevToolsSessionDomains
    class in DevTools V142
  • Includes constructor documentation for initializing with
    IDevToolsSession
  • Documents 60+ domain adapter properties (Accessibility, Animation,
    Audits, Browser, CSS, DOM, Network, etc.)
  • Includes method documentation for PopulateCommandResponseTypeMap()
+1946/-0
OpenQA.Selenium.DevTools.V142.Debugger.ScriptFailedToParseEventArgs.html
Debugger ScriptFailedToParseEventArgs event documentation

docs/api/dotnet/webdriver/OpenQA.Selenium.DevTools.V142.Debugger.ScriptFailedToParseEventArgs.html

  • Added HTML documentation for ScriptFailedToParseEventArgs event args
    class in Debugger domain
  • Documents 16 properties including ScriptId, Url, StartLine, EndLine,
    Hash, BuildId, ExecutionContextId
  • Includes optional properties like SourceMapURL, StackTrace,
    ScriptLanguage, EmbedderName, CodeOffset
  • Provides property descriptions with JSON serialization attributes
+785/-0 
OpenQA.Selenium.DevTools.DevToolsSessionDomains.html
Updated base class derived types for V142                               

docs/api/dotnet/webdriver/OpenQA.Selenium.DevTools.DevToolsSessionDomains.html

  • Updated derived types list to include V142 DevToolsSessionDomains
  • Reordered derived class references to reflect version progression
    (V140, V141, V142)
  • Removed V139 from the derived types list
+1/-1     
OpenQA.Selenium.DevTools.V142.Browser.BrowserAdapter.html
Add DevTools V142 Browser adapter API documentation           

docs/api/dotnet/webdriver/OpenQA.Selenium.DevTools.V142.Browser.BrowserAdapter.html

  • Added new auto-generated HTML documentation file for BrowserAdapter
    class in DevTools V142 Browser domain
  • Documents adapter class that simplifies the command interface for
    Browser domain operations
  • Includes constructor, properties, methods for browser control (close,
    crash, permissions, downloads, etc.), and events
  • Contains 1186 lines of HTML documentation with class hierarchy, method
    signatures, and parameter descriptions
+1186/-0
OpenQA.Selenium.DevTools.V142.Animation.AnimationAdapter.html
Add DevTools V142 Animation adapter API documentation       

docs/api/dotnet/webdriver/OpenQA.Selenium.DevTools.V142.Animation.AnimationAdapter.html

  • Added new auto-generated HTML documentation file for AnimationAdapter
    class in DevTools V142 Animation domain
  • Documents adapter class that simplifies the command interface for
    Animation domain operations
  • Includes constructor, properties, methods for animation control
    (enable, disable, seek, timing, etc.), and events
  • Contains 818 lines of HTML documentation with class hierarchy, method
    signatures, and parameter descriptions
+818/-0 
OpenQA.Selenium.BiDi.Script.Mode.html
Update BiDi Script Mode enum documentation line references

docs/api/dotnet/webdriver/OpenQA.Selenium.BiDi.Script.Mode.html

  • Updated source code link line numbers in the HTML documentation for
    Mode enum
  • Changed reference from line 275 to line 269 in RemoteValue.cs file
    (two occurrences)
  • Reflects code refactoring or line number changes in the source file
+2/-2     
Additional files
101 files
index.json [link]   
manifest.json [link]   
OpenQA.Selenium.BiDi.BrowsingContext.BrowsingContextInfo.html +15/-14 
OpenQA.Selenium.BiDi.BrowsingContext.UserPromptOpenedEventArgs.html +7/-6     
OpenQA.Selenium.BiDi.BrowsingContext.UserPromptType.html +2/-2     
OpenQA.Selenium.BiDi.Network.AuthRequiredEventArgs.html +9/-7     
OpenQA.Selenium.BiDi.Network.BaseParametersEventArgs.html +15/-14 
OpenQA.Selenium.BiDi.Network.BeforeRequestSentEventArgs.html +9/-7     
OpenQA.Selenium.BiDi.Network.FetchErrorEventArgs.html +9/-7     
OpenQA.Selenium.BiDi.Network.InterceptAuthOptions.html +2/-2     
OpenQA.Selenium.BiDi.Network.InterceptRequestOptions.html +2/-2     
OpenQA.Selenium.BiDi.Network.InterceptResponseOptions.html +2/-2     
OpenQA.Selenium.BiDi.Network.InterceptedAuth.html +11/-9   
OpenQA.Selenium.BiDi.Network.InterceptedRequest.html +11/-9   
OpenQA.Selenium.BiDi.Network.InterceptedResponse.html +9/-7     
OpenQA.Selenium.BiDi.Network.NetworkModule.html +5/-5     
OpenQA.Selenium.BiDi.Network.ResponseCompletedEventArgs.html +9/-7     
OpenQA.Selenium.BiDi.Network.ResponseData.html +21/-20 
OpenQA.Selenium.BiDi.Network.ResponseStartedEventArgs.html +9/-7     
OpenQA.Selenium.BiDi.Script.NodeProperties.html +36/-29 
OpenQA.Selenium.BiDi.Script.NodeRemoteValue.html +43/-8   
OpenQA.Selenium.BiDi.Script.WindowProxyRemoteValue.html +6/-6     
OpenQA.Selenium.DevTools.DevToolsDomains.html +1/-1     
OpenQA.Selenium.DevTools.JavaScript.html +1/-1     
OpenQA.Selenium.DevTools.Log.html +1/-1     
OpenQA.Selenium.DevTools.Network.html +1/-1     
OpenQA.Selenium.DevTools.Target.html +1/-1     
OpenQA.Selenium.DevTools.V139.Accessibility.AXNode.html +0/-618 
OpenQA.Selenium.DevTools.V139.Accessibility.AXProperty.html +0/-244 
OpenQA.Selenium.DevTools.V139.Accessibility.AXPropertyName.html +0/-313 
OpenQA.Selenium.DevTools.V139.Accessibility.AXRelatedNode.html +0/-279 
OpenQA.Selenium.DevTools.V139.Accessibility.AXValue.html +0/-313 
OpenQA.Selenium.DevTools.V139.Accessibility.AXValueNativeSourceType.html +0/-189 
OpenQA.Selenium.DevTools.V139.Accessibility.AXValueSource.html +0/-483 
OpenQA.Selenium.DevTools.V139.Accessibility.AXValueSourceType.html +0/-173 
OpenQA.Selenium.DevTools.V139.Accessibility.AXValueType.html +0/-217 
OpenQA.Selenium.DevTools.V139.Accessibility.AccessibilityAdapter.html +0/-670 
OpenQA.Selenium.DevTools.V139.Accessibility.DisableCommandResponse.html +0/-188 
OpenQA.Selenium.DevTools.V139.Accessibility.DisableCommandSettings.html +0/-217 
OpenQA.Selenium.DevTools.V139.Accessibility.EnableCommandResponse.html +0/-188 
OpenQA.Selenium.DevTools.V139.Accessibility.EnableCommandSettings.html +0/-217 
OpenQA.Selenium.DevTools.V139.Accessibility.GetAXNodeAndAncestorsCommandResponse.html +0/-225 
OpenQA.Selenium.DevTools.V139.Accessibility.GetAXNodeAndAncestorsCommandSettings.html +0/-319 
OpenQA.Selenium.DevTools.V139.Accessibility.GetChildAXNodesCommandResponse.html +0/-225 
OpenQA.Selenium.DevTools.V139.Accessibility.GetChildAXNodesCommandSettings.html +0/-284 
OpenQA.Selenium.DevTools.V139.Accessibility.GetFullAXTreeCommandResponse.html +0/-225 
OpenQA.Selenium.DevTools.V139.Accessibility.GetFullAXTreeCommandSettings.html +0/-285 
OpenQA.Selenium.DevTools.V139.Accessibility.GetPartialAXTreeCommandResponse.html +0/-225 
OpenQA.Selenium.DevTools.V139.Accessibility.GetPartialAXTreeCommandSettings.html +0/-353 
OpenQA.Selenium.DevTools.V139.Accessibility.GetRootAXNodeCommandResponse.html +0/-225 
OpenQA.Selenium.DevTools.V139.Accessibility.GetRootAXNodeCommandSettings.html +0/-251 
OpenQA.Selenium.DevTools.V139.Accessibility.LoadCompleteEventArgs.html +0/-215 
OpenQA.Selenium.DevTools.V139.Accessibility.NodesUpdatedEventArgs.html +0/-215 
OpenQA.Selenium.DevTools.V139.Accessibility.QueryAXTreeCommandResponse.html +0/-225 
OpenQA.Selenium.DevTools.V139.Accessibility.QueryAXTreeCommandSettings.html +0/-387 
OpenQA.Selenium.DevTools.V139.Accessibility.html +0/-265 
OpenQA.Selenium.DevTools.V139.Animation.Animation.html +0/-544 
OpenQA.Selenium.DevTools.V139.Animation.AnimationAdapter.html +0/-818 
OpenQA.Selenium.DevTools.V139.Animation.AnimationCanceledEventArgs.html +0/-215 
OpenQA.Selenium.DevTools.V139.Animation.AnimationCreatedEventArgs.html +0/-215 
OpenQA.Selenium.DevTools.V139.Animation.AnimationEffect.html +0/-510 
OpenQA.Selenium.DevTools.V139.Animation.AnimationStartedEventArgs.html +0/-215 
OpenQA.Selenium.DevTools.V139.Animation.AnimationTypeValues.html +0/-161 
OpenQA.Selenium.DevTools.V139.Animation.AnimationUpdatedEventArgs.html +0/-215 
OpenQA.Selenium.DevTools.V139.Animation.DisableCommandResponse.html +0/-188 
OpenQA.Selenium.DevTools.V139.Animation.DisableCommandSettings.html +0/-217 
OpenQA.Selenium.DevTools.V139.Animation.EnableCommandResponse.html +0/-188 
OpenQA.Selenium.DevTools.V139.Animation.EnableCommandSettings.html +0/-217 
OpenQA.Selenium.DevTools.V139.Animation.GetCurrentTimeCommandResponse.html +0/-225 
OpenQA.Selenium.DevTools.V139.Animation.GetCurrentTimeCommandSettings.html +0/-250 
OpenQA.Selenium.DevTools.V139.Animation.GetPlaybackRateCommandResponse.html +0/-225 
OpenQA.Selenium.DevTools.V139.Animation.GetPlaybackRateCommandSettings.html +0/-217 
OpenQA.Selenium.DevTools.V139.Animation.KeyframeStyle.html +0/-244 
OpenQA.Selenium.DevTools.V139.Animation.KeyframesRule.html +0/-245 
OpenQA.Selenium.DevTools.V139.Animation.ReleaseAnimationsCommandResponse.html +0/-188 
OpenQA.Selenium.DevTools.V139.Animation.ReleaseAnimationsCommandSettings.html +0/-250 
OpenQA.Selenium.DevTools.V139.Animation.ResolveAnimationCommandResponse.html +0/-225 
OpenQA.Selenium.DevTools.V139.Animation.ResolveAnimationCommandSettings.html +0/-250 
OpenQA.Selenium.DevTools.V139.Animation.SeekAnimationsCommandResponse.html +0/-188 
OpenQA.Selenium.DevTools.V139.Animation.SeekAnimationsCommandSettings.html +0/-283 
OpenQA.Selenium.DevTools.V139.Animation.SetPausedCommandResponse.html +0/-188 
OpenQA.Selenium.DevTools.V139.Animation.SetPausedCommandSettings.html +0/-283 
OpenQA.Selenium.DevTools.V139.Animation.SetPlaybackRateCommandResponse.html +0/-188 
OpenQA.Selenium.DevTools.V139.Animation.SetPlaybackRateCommandSettings.html +0/-250 
OpenQA.Selenium.DevTools.V139.Animation.SetTimingCommandResponse.html +0/-188 
OpenQA.Selenium.DevTools.V139.Animation.SetTimingCommandSettings.html +0/-316 
OpenQA.Selenium.DevTools.V139.Animation.ViewOrScrollTimeline.html +0/-347 
OpenQA.Selenium.DevTools.V139.Animation.html +0/-280 
OpenQA.Selenium.DevTools.V139.Audits.AffectedCookie.html +0/-277 
OpenQA.Selenium.DevTools.V139.Audits.AffectedFrame.html +0/-211 
OpenQA.Selenium.DevTools.V139.Audits.AffectedRequest.html +0/-245 
OpenQA.Selenium.DevTools.V139.Audits.AttributionReportingIssueDetails.html +0/-313 
OpenQA.Selenium.DevTools.V139.Audits.AttributionReportingIssueType.html +0/-233 
OpenQA.Selenium.DevTools.V139.Audits.AuditsAdapter.html +0/-510 
OpenQA.Selenium.DevTools.V139.Audits.BlockedByResponseIssueDetails.html +0/-312 
OpenQA.Selenium.DevTools.V139.Audits.BlockedByResponseReason.html +0/-181 
OpenQA.Selenium.DevTools.V139.Audits.BounceTrackingIssueDetails.html +0/-211 
OpenQA.Selenium.DevTools.V139.Audits.CheckContrastCommandResponse.html +0/-188 
OpenQA.Selenium.DevTools.V139.Audits.CheckContrastCommandSettings.html +0/-251 
OpenQA.Selenium.DevTools.V139.Audits.CheckFormsIssuesCommandResponse.html +0/-225 
Additional files not shown

@selenium-ci selenium-ci added the B-docs API Docs; see other repo for website documentation label Oct 25, 2025
@selenium-ci selenium-ci merged commit 853d80e into gh-pages Oct 25, 2025
@selenium-ci selenium-ci deleted the api-docs-4.38.0 branch October 25, 2025 01:16
@qodo-merge-pro
Copy link
Contributor

PR Compliance Guide 🔍

Below is a summary of compliance checks for this PR:

Security Compliance
🟢
No security concerns identified No security vulnerabilities detected by AI analysis. Human verification advised for critical code.
Ticket Compliance
🎫 No ticket provided
- [ ] Create ticket/issue <!-- /create_ticket --create_ticket=true -->

</details></td></tr>
Codebase Duplication Compliance
Codebase context is not defined

Follow the guide to enable codebase context checks.

Custom Compliance
No custom compliance provided

Follow the guide to enable custom compliance check.

Compliance status legend 🟢 - Fully Compliant
🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label

@qodo-merge-pro
Copy link
Contributor

PR Code Suggestions ✨

Explore these optional code suggestions:

CategorySuggestion                                                                                                                                    Impact
High-level
Avoid committing auto-generated documentation files

Avoid committing auto-generated documentation files to the source repository.
Instead, generate and publish them via a CI/CD pipeline to keep the repository
clean and focused on source code.

Examples:

docs/api/dotnet/webdriver/OpenQA.Selenium.DevTools.V142.DOM.DOMAdapter.html [1-3070]
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
      <title>Class DOMAdapter </title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta name="title" content="Class DOMAdapter ">
      
      <meta name="description" content="Represents an adapter for the DOM domain to simplify the command interface.">
      <link rel="icon" href="../images/favicon.ico">

 ... (clipped 3060 lines)
docs/api/dotnet/webdriver/OpenQA.Selenium.DevTools.V142.Emulation.EmulationAdapter.html [1-2273]
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
      <title>Class EmulationAdapter </title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta name="title" content="Class EmulationAdapter ">
      
      <meta name="description" content="Represents an adapter for the Emulation domain to simplify the command interface.">
      <link rel="icon" href="../images/favicon.ico">

 ... (clipped 2263 lines)

Solution Walkthrough:

Before:

# PR commits numerous generated HTML files to the repository.
# Example file structure in the commit:
#
# /docs
# └── /api
#     └── /dotnet
#         └── /webdriver
#             ├── OpenQA.Selenium.DevTools.V142.DOM.DOMAdapter.html
#             ├── OpenQA.Selenium.DevTools.V142.Emulation.EmulationAdapter.html
#             ├── OpenQA.Selenium.DevTools.V142.CSS.CSSAdapter.html
#             └── ... (hundreds of other generated files)

After:

# Generated files are not committed. Instead, they are built and deployed by a CI/CD pipeline.

# .gitignore
# Ignore generated documentation files
docs/api/

# ci_pipeline.yml (conceptual)
jobs:
  release:
    steps:
    - name: Checkout code
      ...
    - name: Generate documentation
      run: build-docs-script
    - name: Publish documentation to a hosting service (e.g., GitHub Pages)
      ...
Suggestion importance[1-10]: 9

__

Why: This is a critical repository management and process suggestion that correctly identifies the issue of committing large, auto-generated files, which bloats the repository and complicates reviews.

High
Security
Implement Content Security Policy header

Implement a Content Security Policy (CSP) by adding a meta tag. Use a nonce for
the inline script and Subresource Integrity (SRI) for the external script to
mitigate Cross-Site Scripting (XSS) risks.

docs/api/dotnet/webdriver/OpenQA.Selenium.DevTools.V142.Emulation.EmulationAdapter.html [33-38]

-<script type="module" src="./../public/docfx.min.js"></script>
+<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'nonce-R4nd0m' https://cdn.jsdelivr.net; object-src 'none'; base-uri 'self';">
+<script type="module" src="./../public/docfx.min.js" integrity="sha384-..." crossorigin="anonymous"></script>
 
-<script>
+<script nonce="R4nd0m">
   const theme = localStorage.getItem('theme') || 'auto'
   document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
 </script>
  • Apply / Chat
Suggestion importance[1-10]: 8

__

Why: The suggestion correctly identifies the lack of a Content Security Policy (CSP), which is a critical security measure against XSS attacks, and provides a valid implementation pattern.

Medium
General
Add listener for system theme changes

Refactor the theme-setting script and add an event listener to
prefers-color-scheme to dynamically update the theme when the system's color
scheme changes.

docs/api/dotnet/webdriver/OpenQA.Selenium.DevTools.V142.DOM.DOMAdapter.html [35-38]

 <script>
-  const theme = localStorage.getItem('theme') || 'auto'
-  document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
+  const getStoredTheme = () => localStorage.getItem('theme') || 'auto';
+
+  const setVisualTheme = theme => {
+    const effectiveTheme = theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme;
+    document.documentElement.setAttribute('data-bs-theme', effectiveTheme);
+  };
+
+  setVisualTheme(getStoredTheme());
+
+  window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
+    const storedTheme = getStoredTheme();
+    if (storedTheme === 'auto') {
+      setVisualTheme(storedTheme);
+    }
+  });
 </script>
  • Apply / Chat
Suggestion importance[1-10]: 6

__

Why: The suggestion correctly identifies that the theme does not update on system-level changes and provides a valid code improvement to add this functionality, enhancing user experience.

Low
Learned
best practice
Align nullability in docs

Ensure method signatures and summaries clearly reflect optional parameters and
nullable return types consistently across all similar methods in this adapter.

docs/api/dotnet/webdriver/OpenQA.Selenium.DevTools.V142.DOM.DOMAdapter.html [366-376]

 <h3 id="OpenQA_Selenium_DevTools_V142_DOM_DOMAdapter_Disable_OpenQA_Selenium_DevTools_V142_DOM_DisableCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V142.DOM.DOMAdapter.Disable(OpenQA.Selenium.DevTools.V142.DOM.DisableCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
-  Disable(DisableCommandSettings?, CancellationToken, int?, bool)
+  Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
 ...
 <pre><code class="lang-csharp hljs">public Task&lt;DisableCommandResponse?&gt; Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>

[To ensure code accuracy, apply this suggestion manually]

Suggestion importance[1-10]: 6

__

Why:
Relevant best practice - Keep API and documentation accurate and consistent by aligning parameter nullability/optionality across docs and interfaces.

Low
  • More

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

B-docs API Docs; see other repo for website documentation Review effort 2/5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants