Skip to content

Commit

Permalink
[dotnet] Update code samples with 130 cdp version
Browse files Browse the repository at this point in the history
  • Loading branch information
harsha509 committed Oct 30, 2024
1 parent 001f278 commit 1b716dc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/dotnet/SeleniumDocs/BaseTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class BaseTest
protected IWebDriver driver;
protected Uri GridUrl;
private Process _webserverProcess;
private const string ServerJarName = "selenium-server-4.25.0.jar";
private const string ServerJarName = "selenium-server-4.26.0.jar";
private static readonly string BaseDirectory = AppContext.BaseDirectory;
private const string RelativePathToGrid = "../../../../../";
private readonly string _examplesDirectory = Path.GetFullPath(Path.Combine(BaseDirectory, RelativePathToGrid));
Expand Down
14 changes: 7 additions & 7 deletions examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using OpenQA.Selenium;
using OpenQA.Selenium.DevTools;
using System.Linq;
using OpenQA.Selenium.DevTools.V129.Network;
using OpenQA.Selenium.DevTools.V129.Performance;
using OpenQA.Selenium.DevTools.V130.Network;

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (ubuntu, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (ubuntu, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (ubuntu, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (ubuntu, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (ubuntu, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (ubuntu, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (windows, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (windows, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (windows, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (windows, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (windows, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (windows, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (macos, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (macos, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (macos, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (macos, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (macos, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 7 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (macos, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)
using OpenQA.Selenium.DevTools.V130.Performance;

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (ubuntu, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (ubuntu, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (ubuntu, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (ubuntu, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (ubuntu, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (ubuntu, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (windows, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (windows, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (windows, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (windows, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (windows, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (windows, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (macos, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (macos, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (macos, stable)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (macos, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (macos, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)

Check failure on line 8 in examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

View workflow job for this annotation

GitHub Actions / tests (macos, nightly)

The type or namespace name 'V130' does not exist in the namespace 'OpenQA.Selenium.DevTools' (are you missing an assembly reference?)


namespace SeleniumDocs.BiDi.CDP
Expand All @@ -16,7 +16,7 @@ public class NetworkTest : BaseTest
[TestInitialize]
public void Startup()
{
StartDriver("129");
StartDriver("130");
}

[TestMethod]
Expand Down Expand Up @@ -109,9 +109,9 @@ public async Task PerformanceMetrics()
driver.Url = "https://www.selenium.dev/selenium/web/frameset.html";

var session = ((IDevTools)driver).GetDevToolsSession();
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V129.DevToolsSessionDomains>();
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V130.DevToolsSessionDomains>();

await domains.Performance.Enable(new OpenQA.Selenium.DevTools.V129.Performance.EnableCommandSettings());
await domains.Performance.Enable(new OpenQA.Selenium.DevTools.V13.Performance.EnableCommandSettings());
var metricsResponse =
await session.SendCommand<GetMetricsCommandSettings, GetMetricsCommandResponse>(
new GetMetricsCommandSettings()
Expand All @@ -130,8 +130,8 @@ await session.SendCommand<GetMetricsCommandSettings, GetMetricsCommandResponse>(
public async Task SetCookie()
{
var session = ((IDevTools)driver).GetDevToolsSession();
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V129.DevToolsSessionDomains>();
await domains.Network.Enable(new OpenQA.Selenium.DevTools.V129.Network.EnableCommandSettings());
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V130.DevToolsSessionDomains>();
await domains.Network.Enable(new OpenQA.Selenium.DevTools.V130.Network.EnableCommandSettings());

var cookieCommandSettings = new SetCookieCommandSettings
{
Expand Down
4 changes: 2 additions & 2 deletions examples/python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def server_old(request):
os.path.abspath(__file__)
)
),
"selenium-server-4.25.0.jar",
"selenium-server-4.26.0.jar",
)

def wait_for_server(url, timeout):
Expand Down Expand Up @@ -198,7 +198,7 @@ def server():
)
)
),
"selenium-server-4.25.0.jar",
"selenium-server-4.26.0.jar",
)

args = [
Expand Down
Binary file added examples/selenium-server-4.26.0.jar
Binary file not shown.

0 comments on commit 1b716dc

Please sign in to comment.