Skip to content

Commit 73ade56

Browse files
authored
Update README.md for .NET CDP version modifications
1 parent 357403b commit 73ade56

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

dotnet/src/webdriver/cdp/README.md

+17-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Adding support for a new version of Chromium DevTools Protocol to the .NET bindings
1+
### Adding support for a new version of Chromium DevTools Protocol to the .NET bindings
22

33
To add support for a new version of the Chromium DevTools Protocol to the .NET bindings,
44
perform the following steps, where `<N>` is the major version of the protocol:
@@ -16,25 +16,29 @@ add an entry for version `<N>` to the `SupportedDevToolsVersions` dictionary ini
1616
6. In [`//dotnet/src/webdriver:WebDriver.csproj.prebuild.cmd`](https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/WebDriver.csproj.prebuild.cmd),
1717
add the following block (substituting the proper value for `<N>`):
1818

19-
if not exist "%1..\..\..\bazel-bin\dotnet\src\webdriver\cdp\v<N>\DevToolsSessionDomains.cs" (
20-
echo Generating CDP code for version <N>
21-
pushd "%1..\..\.."
22-
bazel build //dotnet/src/webdriver/cdp:generate-v<N>
23-
popd
24-
)
19+
```
20+
if not exist "%1..\..\..\bazel-bin\dotnet\src\webdriver\cdp\v<N>\DevToolsSessionDomains.cs" (
21+
echo Generating CDP code for version <N>
22+
pushd "%1..\..\.."
23+
bazel build //dotnet/src/webdriver/cdp:generate-v<N>
24+
popd
25+
)
26+
```
2527

2628
7. In [`//dotnet/src/webdriver:WebDriver.csproj.prebuild.sh`](https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/WebDriver.csproj.prebuild.sh),
2729
add the following block (substituting the proper value for `<N>`):
2830

29-
if [[ ! -f "$1../../../bazel-bin/dotnet/src/webdriver/cdp/v<N>/DevToolsSessionDomains.cs" ]]
30-
then
31-
echo "Generating CDP code for version <N>"
32-
bazel build //dotnet/src/webdriver/cdp:generate-v<N>
33-
fi
31+
```
32+
if [[ ! -f "$1../../../bazel-bin/dotnet/src/webdriver/cdp/v<N>/DevToolsSessionDomains.cs" ]]
33+
then
34+
echo "Generating CDP code for version <N>"
35+
bazel build //dotnet/src/webdriver/cdp:generate-v<N>
36+
fi
37+
```
3438

3539
8. Commit the changes.
3640

37-
#Removing support for a version of Chromium DevTools Protocol from the .NET bindings
41+
### Removing support for a version of Chromium DevTools Protocol from the .NET bindings
3842

3943
To remove support for a version of the Chromium DevTools Protocol from the .NET bindings,
4044
perform the following steps, where `<N>` is the major version of the protocol:

0 commit comments

Comments
 (0)