[🚀 Feature]: Implement high level BiDi network commands #13993
Labels
A-needs decision
C-devtools
BiDi or Chrome DevTools related issues
C-dotnet
C-java
C-nodejs
C-py
C-rb
I-enhancement
Milestone
Feature and motivation
At the Selenium Dev Summit we agreed on this API to be generally applied across the bindings; we'll keep this labeled beta while we make sure that it works for what is needed
We want the methods to be accessible from a network() method available directly from the Driver class (e.g.,
driver.network.addRequestHandler()
,driver.network().addRequestHandler()
). We can't do everything just like this in all the languages, because, for example, .NET uses events with a += and -= for adding and removing handler events so we don't went "add" and "remove" methods.Implementations:
addRequestHandler()
removeRequestHandler()
clearRequestHandlers()
addResponseHandler()
removeResponseHandler()
clearResponseHandlers()
addAuthenticationHandler()
addJavaScriptErrorHandler()
removeAuthenticationHandler()
clearAuthenticationHandlers()
Considerations:
If we can figure out how to get the "add" methods return an id that can be used by the "remove" methods, that would be a lot easier for or users. Might be too complicated to implement.
The text was updated successfully, but these errors were encountered: