|
7115 | 7115 | components will not be documented, and this section will focus only on the user-friendly
|
7116 | 7116 | features that we encourage users to take advantage of.</p><p>If there is additional functionality you’d like to see, please raise a
|
7117 | 7117 | <a href="https://github.com/SeleniumHQ/selenium/issues/new?assignees=&labels=&template=feature.md">feature request</a>.</p></div><div class=td-content style=page-break-before:always><h1 id=pg-cf5006f7288ce3bb69a7e8866148ee9d>2.8.1 - WebDriver BiDi Logging Features</h1><div class=lead>These features are related to logging. Because “logging” can refer to so many different things, these methods are made available via a “script” namespace.</div><p>Remember that to use WebDriver BiDi, you must enable it in Options.
|
7118 |
| -For more details, see <a href=https://www.selenium.dev/documentation/webdriver/bidi/>Enabling BiDi in Selenium</a></p><h2 id=console-message-handlers>Console Message Handlers</h2><p>Record or take actions on <code>console.log</code> events.</p><h3 id=add-handler>Add Handler</h3><ul class="nav nav-tabs" id=tabs-1 role=tablist><li class=nav-item><button class="nav-link active" id=tabs-01-00-tab data-bs-toggle=tab data-bs-target=#tabs-01-00 role=tab data-td-tp-persist=java aria-controls=tabs-01-00 aria-selected=true> |
| 7118 | +For more details, see <a href=https://www.selenium.dev/documentation/webdriver/bidi/>Enabling BiDi</a></p><h2 id=console-message-handlers>Console Message Handlers</h2><p>Record or take actions on <code>console.log</code> events.</p><h3 id=add-handler>Add Handler</h3><ul class="nav nav-tabs" id=tabs-1 role=tablist><li class=nav-item><button class="nav-link active" id=tabs-01-00-tab data-bs-toggle=tab data-bs-target=#tabs-01-00 role=tab data-td-tp-persist=java aria-controls=tabs-01-00 aria-selected=true> |
7119 | 7119 | Java</button></li><li class=nav-item><button class=nav-link id=tabs-01-01-tab data-bs-toggle=tab data-bs-target=#tabs-01-01 role=tab data-td-tp-persist=python aria-controls=tabs-01-01 aria-selected=false>
|
7120 | 7120 | Python</button></li><li class=nav-item><button class=nav-link id=tabs-01-02-tab data-bs-toggle=tab data-bs-target=#tabs-01-02 role=tab data-td-tp-persist=csharp aria-controls=tabs-01-02 aria-selected=false>
|
7121 | 7121 | CSharp</button></li><li class=nav-item><button class=nav-link id=tabs-01-03-tab data-bs-toggle=tab data-bs-target=#tabs-01-03 role=tab data-td-tp-persist=ruby aria-controls=tabs-01-03 aria-selected=false>
|
|
7152 | 7152 | <strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-04-02 role=tabpanel aria-labelled-by=tabs-04-02-tab tabindex=4><p><a href=https://github.com/SeleniumHQ/selenium><span class=selenium-badge-implementation data-bs-toggle=tooltip data-bs-placement=right title="This functionality is not available for this language">Implementation Missing</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-04-03 role=tabpanel aria-labelled-by=tabs-04-03-tab tabindex=4><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-rb data-lang=rb><span style=display:flex><span> <span style=color:#204a87>id</span> <span style=color:#ce5c00;font-weight:700>=</span> <span style=color:#000>driver</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>script</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>add_javascript_error_handler</span> <span style=color:#000;font-weight:700>{</span> <span style=color:#ce5c00;font-weight:700>|</span><span style=color:#000>error</span><span style=color:#ce5c00;font-weight:700>|</span> <span style=color:#000>log_entries</span> <span style=color:#ce5c00;font-weight:700><<</span> <span style=color:#000>error</span> <span style=color:#000;font-weight:700>}</span>
|
7153 | 7153 | </span></span><span style=display:flex><span> <span style=color:#000>driver</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>script</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>remove_javascript_error_handler</span><span style=color:#000;font-weight:700>(</span><span style=color:#204a87>id</span><span style=color:#000;font-weight:700>)</span></span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk//examples/ruby/spec/bidi/logging_spec.rb#L44-L45 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
|
7154 | 7154 | <strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-04-04 role=tabpanel aria-labelled-by=tabs-04-04-tab tabindex=4><p><a href=https://github.com/SeleniumHQ/selenium><span class=selenium-badge-implementation data-bs-toggle=tooltip data-bs-placement=right title="This functionality is not available for this language">Implementation Missing</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-04-05 role=tabpanel aria-labelled-by=tabs-04-05-tab tabindex=4><p><a href=https://github.com/SeleniumHQ/selenium><span class=selenium-badge-implementation data-bs-toggle=tooltip data-bs-placement=right title="This functionality is not available for this language">Implementation Missing</span></a></p></div></div></div><div class=td-content style=page-break-before:always><h1 id=pg-a5ef0f3e6acb25cccdbf3f49cb168e46>2.8.2 - WebDriver BiDi Network Features</h1><div class=lead>These features are related to networking, and are made available via a “network” namespace.</div><p>The implementation of these features is being tracked here: <a href=https://github.com/SeleniumHQ/selenium/issues/13993>#13993</a></p><p>Remember that to use WebDriver BiDi, you must enable it in Options.
|
7155 |
| -For more details, see <a href=https://www.selenium.dev/documentation/webdriver/bidi/>Enabling BiDi in Selenium</a></p><h2 id=authentication-handlers>Authentication Handlers</h2><h2 id=request-handlers>Request Handlers</h2><h2 id=response-handlers>Response Handlers</h2></div><div class=td-content style=page-break-before:always><h1 id=pg-3842279c16b9dd584d367aee56c8e7bf>2.8.3 - WebDriver BiDi Script Features</h1><div class=lead>These features are related to scripts, and are made available via a “script” namespace.</div><p>The implementation of these features is being tracked here: <a href=https://github.com/SeleniumHQ/selenium/issues/13992>#13992</a></p><p>Remember that to use WebDriver BiDi, you must enable it in Options. |
7156 |
| -For more details, see <a href=https://www.selenium.dev/documentation/webdriver/bidi/>Enabling BiDi in Selenium</a></p><h2 id=script-pinning>Script Pinning</h2><h2 id=execute-script>Execute Script</h2><h2 id=dom-mutation-handlers>DOM Mutation Handlers</h2></div><div class=td-content style=page-break-before:always><h1 id=pg-865e23834cc0c8128576e8ac5a702676>2.8.4 - Chrome DevTools Protocol</h1><div class=lead>Examples of working with Chrome DevTools Protocol in Selenium. CDP support is temporary until WebDriver BiDi has been implemented.</div><p>Many browsers provide “DevTools” – a set of tools that are integrated with the browser that |
| 7155 | +For more details, see <a href=https://www.selenium.dev/documentation/webdriver/bidi/>Enabling BiDi</a></p><h2 id=authentication-handlers>Authentication Handlers</h2><h2 id=request-handlers>Request Handlers</h2><h2 id=response-handlers>Response Handlers</h2></div><div class=td-content style=page-break-before:always><h1 id=pg-3842279c16b9dd584d367aee56c8e7bf>2.8.3 - WebDriver BiDi Script Features</h1><div class=lead>These features are related to scripts, and are made available via a “script” namespace.</div><p>The implementation of these features is being tracked here: <a href=https://github.com/SeleniumHQ/selenium/issues/13992>#13992</a></p><p>Remember that to use WebDriver BiDi, you must enable it in Options. |
| 7156 | +For more details, see <a href=https://www.selenium.dev/documentation/webdriver/bidi/>Enabling BiDi</a></p><h2 id=script-pinning>Script Pinning</h2><h2 id=execute-script>Execute Script</h2><h2 id=dom-mutation-handlers>DOM Mutation Handlers</h2></div><div class=td-content style=page-break-before:always><h1 id=pg-865e23834cc0c8128576e8ac5a702676>2.8.4 - Chrome DevTools Protocol</h1><div class=lead>Examples of working with Chrome DevTools Protocol in Selenium. CDP support is temporary until WebDriver BiDi has been implemented.</div><p>Many browsers provide “DevTools” – a set of tools that are integrated with the browser that |
7157 | 7157 | developers can use to debug web apps and explore the performance of their pages. Google Chrome’s
|
7158 | 7158 | DevTools make use of a protocol called the Chrome DevTools Protocol (or “CDP” for short).
|
7159 | 7159 | As the name suggests, this is not designed for testing, nor to have a stable API, so functionality
|
|
0 commit comments