Skip to content

Commit 110eb35

Browse files
committed
Fixing dotnet tests
1 parent 547670d commit 110eb35

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

examples/dotnet/SeleniumDocs/Bidirectional/ChromeDevtools/CdpApiTest.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
using Microsoft.VisualStudio.TestTools.UnitTesting;
66
using OpenQA.Selenium;
77
using OpenQA.Selenium.DevTools;
8-
using OpenQA.Selenium.DevTools.V121.Network;
9-
using OpenQA.Selenium.DevTools.V121.Performance;
8+
using OpenQA.Selenium.DevTools.V124.Network;
9+
using OpenQA.Selenium.DevTools.V124.Performance;
1010

1111
namespace SeleniumDocs.Bidirectional.ChromeDevtools
1212
{
@@ -23,8 +23,8 @@ public void Startup()
2323
public async Task SetCookie()
2424
{
2525
var session = ((IDevTools)driver).GetDevToolsSession();
26-
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V121.DevToolsSessionDomains>();
27-
await domains.Network.Enable(new OpenQA.Selenium.DevTools.V121.Network.EnableCommandSettings());
26+
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V124.DevToolsSessionDomains>();
27+
await domains.Network.Enable(new OpenQA.Selenium.DevTools.V124.Network.EnableCommandSettings());
2828

2929
var cookieCommandSettings = new SetCookieCommandSettings
3030
{
@@ -47,8 +47,8 @@ public async Task PerformanceMetrics()
4747
driver.Url = "https://www.selenium.dev/selenium/web/frameset.html";
4848

4949
var session = ((IDevTools)driver).GetDevToolsSession();
50-
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V121.DevToolsSessionDomains>();
51-
await domains.Performance.Enable(new OpenQA.Selenium.DevTools.V121.Performance.EnableCommandSettings());
50+
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V124.DevToolsSessionDomains>();
51+
await domains.Performance.Enable(new OpenQA.Selenium.DevTools.V124.Performance.EnableCommandSettings());
5252

5353
var metricsResponse =
5454
await session.SendCommand<GetMetricsCommandSettings, GetMetricsCommandResponse>(
@@ -68,8 +68,8 @@ await session.SendCommand<GetMetricsCommandSettings, GetMetricsCommandResponse>(
6868
public async Task BasicAuth()
6969
{
7070
var session = ((IDevTools)driver).GetDevToolsSession();
71-
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V121.DevToolsSessionDomains>();
72-
await domains.Network.Enable(new OpenQA.Selenium.DevTools.V121.Network.EnableCommandSettings());
71+
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V124.DevToolsSessionDomains>();
72+
await domains.Network.Enable(new OpenQA.Selenium.DevTools.V124.Network.EnableCommandSettings());
7373

7474
var encodedAuth = Convert.ToBase64String(Encoding.Default.GetBytes("admin:admin"));
7575
var headerSettings = new SetExtraHTTPHeadersCommandSettings

examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private static string GetChromeLocation()
177177
{
178178
BrowserVersion = "stable"
179179
};
180-
return new DriverFinder(options).BrowserPath();
180+
return new DriverFinder(options).GetBrowserPath();
181181
}
182182
}
183183
}

examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private static string GetEdgeLocation()
177177
{
178178
BrowserVersion = "stable"
179179
};
180-
return new DriverFinder(options).BrowserPath();
180+
return new DriverFinder(options).GetBrowserPath();
181181
}
182182
}
183183
}

examples/dotnet/SeleniumDocs/Browsers/FirefoxTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private static string GetFirefoxLocation()
201201
{
202202
BrowserVersion = "stable"
203203
};
204-
return new DriverFinder(options).BrowserPath();
204+
return new DriverFinder(options).GetBrowserPath();
205205
}
206206
}
207207
}

examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void DriverPort()
3838

3939
private static string GetDriverLocation(ChromeOptions options)
4040
{
41-
return new DriverFinder(options).DriverPath();
41+
return new DriverFinder(options).GetDriverPath();
4242
}
4343

4444
private static ChromeOptions GetLatestChromeOptions()

examples/dotnet/SeleniumDocs/SeleniumDocs.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.5.1" />
1111
<PackageReference Include="MSTest.TestAdapter" Version="3.3.1" />
1212
<PackageReference Include="MSTest.TestFramework" Version="3.3.1" />
13-
<PackageReference Include="Selenium.Support" Version="4.19.0" />
13+
<PackageReference Include="Selenium.Support" Version="4.20.0" />
1414
<PackageReference Include="Selenium.WebDriver" Version="4.20.0" />
1515
</ItemGroup>
1616

0 commit comments

Comments
 (0)