Path: blob/trunk/dotnet/src/webdriver/DevTools/README.md
8669 views
Adding support for a new version of Chromium DevTools Protocol to the .NET bindings
To add support for a new version of the Chromium DevTools Protocol to the .NET bindings, perform the following steps, where <N> is the major version of the protocol:
Add the new version string (
v<N>) to theSUPPORTED_DEVTOOLS_VERSIONSlist in//dotnet:selenium-dotnet-version.bzl.Create a new directory at
//dotnet/src/webdriver/DevTools/v<N>, and copy the contents of the//dotnet/src/webdriver/DevTools/v<N-1>directory into it.Rename each of the
*.csfiles in//dotnet/src/webdriver/DevTools/v<N>so that the file names start withV<N>instead ofV<N-1>.In each of the
*.csfiles in//dotnet/src/webdriver/DevTools/v<N>, update all occurrences ofV<N-1>toV<N>. IMPORTANT: Do not change the case ofV<N>in each.csfile.In
//dotnet/src/webdriver/DevTools/DevToolsDomains.cs, add an entry for version<N>to theSupportedDevToolsVersionsdictionary initialization.In
//dotnet/src/webdriver:WebDriver.csproj.prebuild.cmd, add the following block (substituting the proper value for<N>):
In
//dotnet/src/webdriver:WebDriver.csproj.prebuild.sh, add the following block (substituting the proper value for<N>):
In each of the
*.csfiles in//dotnet/test/common/DevTools/, update all occurrences ofV<N-2>toV<N-1>. For now, due to issues with timeliness of CI tool updates, we keep this one version behind the latest.Commit the changes.
Removing support for a version of Chromium DevTools Protocol from the .NET bindings
To remove support for a version of the Chromium DevTools Protocol from the .NET bindings, perform the following steps, where <N> is the major version of the protocol:
Delete the contents of the
//dotnet/src/webdriver/DevTools/v<N>directory.In
//dotnet/src/webdriver/DevTools/DevToolsDomains.cs, remove the entry for version<N>from theSupportedDevToolsVersionsdictionary initialization.Remove the version string (
v<N>) from theSUPPORTED_DEVTOOLS_VERSIONSlist in//dotnet:selenium-dotnet-version.bzl.Commit the changes.