Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
using OpenQA.Selenium;
using OpenQA.Selenium.DevTools;
using System.Linq;
using OpenQA.Selenium.DevTools.V157.Browser;
using OpenQA.Selenium.DevTools.V157.Network;
using OpenQA.Selenium.DevTools.V157.Performance;
using OpenQA.Selenium.DevTools.V158.Browser;
using OpenQA.Selenium.DevTools.V158.Network;
using OpenQA.Selenium.DevTools.V158.Performance;


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

[TestMethod]
Expand Down Expand Up @@ -112,9 +112,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.V157.DevToolsSessionDomains>();
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V158.DevToolsSessionDomains>();

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

var cookieCommandSettings = new SetCookieCommandSettings
{
Expand All @@ -156,7 +156,7 @@ public async Task WaitForDownload()
driver.Url = "https://www.selenium.dev/selenium/web/downloads/download.html";

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

var downloadPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Directory.CreateDirectory(downloadPath);
Expand Down
4 changes: 2 additions & 2 deletions examples/dotnet/SeleniumDocs/SeleniumDocs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.7.1" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.0" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.0" />
<PackageReference Include="Selenium.Support" Version="4.53.0" />
<PackageReference Include="Selenium.WebDriver" Version="4.53.0" />
<PackageReference Include="Selenium.Support" Version="4.54.0" />
<PackageReference Include="Selenium.WebDriver" Version="4.54.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion examples/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repositories {
mavenCentral()
}

ext['seleniumVersion'] = System.getProperty('selenium.version', '4.53.0')
ext['seleniumVersion'] = System.getProperty('selenium.version', '4.54.0')

dependencies {
testImplementation "org.seleniumhq.selenium:selenium-java:${seleniumVersion}"
Expand Down
2 changes: 1 addition & 1 deletion examples/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<selenium.version>4.53.0</selenium.version>
<selenium.version>4.54.0</selenium.version>
</properties>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.devtools.DevTools;
import org.openqa.selenium.devtools.HasDevTools;
import org.openqa.selenium.devtools.v157.browser.Browser;
import org.openqa.selenium.devtools.v157.network.Network;
import org.openqa.selenium.devtools.v157.network.model.Headers;
import org.openqa.selenium.devtools.v158.browser.Browser;
import org.openqa.selenium.devtools.v158.network.Network;
import org.openqa.selenium.devtools.v158.network.model.Headers;
import org.openqa.selenium.support.ui.WebDriverWait;

public class CdpApiTest extends BaseTest {
Expand All @@ -27,7 +27,7 @@ public class CdpApiTest extends BaseTest {
@BeforeEach
public void createSession() {
ChromeOptions options = getDefaultChromeOptions();
options.setBrowserVersion("157");
options.setBrowserVersion("158");
driver = new ChromeDriver(options);
wait = new WebDriverWait(driver, Duration.ofSeconds(10));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
import org.openqa.selenium.devtools.DevTools;
import org.openqa.selenium.devtools.HasDevTools;
import org.openqa.selenium.devtools.NetworkInterceptor;
import org.openqa.selenium.devtools.v157.browser.Browser;
import org.openqa.selenium.devtools.v157.network.Network;
import org.openqa.selenium.devtools.v157.network.model.CookiePartitionKey;
import org.openqa.selenium.devtools.v157.network.model.CookiePriority;
import org.openqa.selenium.devtools.v157.network.model.CookieSameSite;
import org.openqa.selenium.devtools.v157.network.model.CookieSourceScheme;
import org.openqa.selenium.devtools.v157.network.model.TimeSinceEpoch;
import org.openqa.selenium.devtools.v157.performance.Performance;
import org.openqa.selenium.devtools.v157.performance.model.Metric;
import org.openqa.selenium.devtools.v158.browser.Browser;
import org.openqa.selenium.devtools.v158.network.Network;
import org.openqa.selenium.devtools.v158.network.model.CookiePartitionKey;
import org.openqa.selenium.devtools.v158.network.model.CookiePriority;
import org.openqa.selenium.devtools.v158.network.model.CookieSameSite;
import org.openqa.selenium.devtools.v158.network.model.CookieSourceScheme;
import org.openqa.selenium.devtools.v158.network.model.TimeSinceEpoch;
import org.openqa.selenium.devtools.v158.performance.Performance;
import org.openqa.selenium.devtools.v158.performance.model.Metric;
import org.openqa.selenium.remote.http.*;
import org.openqa.selenium.support.ui.WebDriverWait;

Expand Down
14 changes: 7 additions & 7 deletions examples/javascript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "Apache-2.0",
"dependencies": {
"assert": "2.1.0",
"selenium-webdriver": "4.53.0"
"selenium-webdriver": "4.54.0"
},
"devDependencies": {
"mocha": "12.0.3"
Expand Down
2 changes: 1 addition & 1 deletion examples/kotlin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<maven-surefire-plugin.version>3.6.1</maven-surefire-plugin.version>

<java.version>17</java.version>
<selenium.version>4.53.0</selenium.version>
<selenium.version>4.54.0</selenium.version>

<maven.compiler.target>${java.version}</maven.compiler.target>
<maven.compiler.source>${java.version}</maven.compiler.source>
Expand Down
4 changes: 2 additions & 2 deletions examples/ruby/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ gem 'rake', '~> 13.0'
gem 'rspec', '~> 3.0'
gem 'rubocop', '~> 1.35'
gem 'rubocop-rspec', '~> 3.0'
gem 'selenium-devtools', '= 0.157.0'
gem 'selenium-webdriver', '= 4.53.0'
gem 'selenium-devtools', '= 0.158.0'
gem 'selenium-webdriver', '= 4.54.0'
8 changes: 4 additions & 4 deletions examples/ruby/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ GEM
rubocop (~> 1.86, >= 1.86.2)
ruby-progressbar (1.13.0)
rubyzip (3.7.0)
selenium-devtools (0.157.0)
selenium-devtools (0.158.0)
selenium-webdriver (~> 4.2)
selenium-webdriver (4.53.0)
selenium-webdriver (4.54.0)
base64 (~> 0.2)
logger (~> 1.4)
rubyzip (>= 1.2.2, < 4.0)
Expand All @@ -76,8 +76,8 @@ DEPENDENCIES
rspec (~> 3.0)
rubocop (~> 1.35)
rubocop-rspec (~> 3.0)
selenium-devtools (= 0.157.0)
selenium-webdriver (= 4.53.0)
selenium-devtools (= 0.158.0)
selenium-webdriver (= 4.54.0)

BUNDLED WITH
4.0.23
Loading