RemoteWebDriver BiDirectional API (CDP implementation)
Page being translated from English to Japanese. Do you speak Japanese? Help us to translate it by sending us pull requests!
The following examples demonstrate how to leverage BiDi APIs with Remote WebDriver.
Register Basic Auth
Some applications make use of browser authentication to secure pages. With Selenium, you can automate the input of basic auth credentials whenever they arise.
Mutation Observation
Mutation Observation is the ability to capture events via WebDriver BiDi when there are DOM mutations on a specific element in the DOM.
Listen to console.log
events
Listen to the console.log
events and register callbacks to process the event.
Actions causing JS exceptions
Network Interception
If you want to capture network events coming into the browser and you want manipulate them you are able to do it with the following examples.