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

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions common/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def pin_browsers():

http_archive(
name = "linux_firefox",
url = "https://ftp.mozilla.org/pub/firefox/releases/153.0.1/linux-x86_64/en-US/firefox-153.0.1.tar.xz",
sha256 = "05fb58905a90ce717c36a2ba5af0bbdc4d0e8b0eed6f50469030774c8c85b8eb",
url = "https://ftp.mozilla.org/pub/firefox/releases/153.0.3/linux-x86_64/en-US/firefox-153.0.3.tar.xz",
sha256 = "22b312280900bfb174b685ece32c7b3c6d72e7f8e53d6d30f21ac41a8dc500a2",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
package(default_visibility = ["//visibility:public"])
Expand All @@ -34,8 +34,8 @@ js_library(

dmg_archive(
name = "mac_firefox",
url = "https://ftp.mozilla.org/pub/firefox/releases/153.0.1/mac/en-US/Firefox%20153.0.1.dmg",
sha256 = "e5a7f8f34b16ac5d8d429a1438468f023ad7bf9099fa928db537f45e32159f78",
url = "https://ftp.mozilla.org/pub/firefox/releases/153.0.3/mac/en-US/Firefox%20153.0.3.dmg",
sha256 = "a0523b6f2f10f13c6071d8b53ed7678193d693febd8a5d4fd8d7417b3c661045",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
package(default_visibility = ["//visibility:public"])
Expand Down Expand Up @@ -200,8 +200,8 @@ js_library(

http_archive(
name = "linux_chrome",
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.71/linux64/chrome-linux64.zip",
sha256 = "6bd04aab53fba1544ce6027d9daddb24137295033124a61ecdf9840d785792e9",
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.76/linux64/chrome-linux64.zip",
sha256 = "d9e4c5916f77e737f22056cab47cd8abb7d39ebec559500ffc2d6f3e02106a7e",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
package(default_visibility = ["//visibility:public"])
Expand All @@ -221,8 +221,8 @@ js_library(
)
http_archive(
name = "mac_chrome",
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.71/mac-arm64/chrome-mac-arm64.zip",
sha256 = "1c516b5d6c00a074034d5ce03dc1cc9bd2cde2a09293d9613244e0bc153cb80f",
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.76/mac-arm64/chrome-mac-arm64.zip",
sha256 = "4d727601939c51719d2b5ff7d2cd57c44fab6d2529f9f1d2e5769939b86590bf",
strip_prefix = "chrome-mac-arm64",
patch_cmds = [
"mv 'Google Chrome for Testing.app' Chrome.app",
Expand All @@ -242,8 +242,8 @@ js_library(
)
http_archive(
name = "linux_chromedriver",
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.71/linux64/chromedriver-linux64.zip",
sha256 = "89b11804aa50b90b4821b19311f4bf688ce8d394484b2eea08bbcffd5644c1d8",
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.76/linux64/chromedriver-linux64.zip",
sha256 = "b80c87a1a41ec5209163f6fbe1e139d5aca7b632116707097fe9a61302e8e555",
strip_prefix = "chromedriver-linux64",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
Expand All @@ -260,8 +260,8 @@ js_library(

http_archive(
name = "mac_chromedriver",
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.71/mac-arm64/chromedriver-mac-arm64.zip",
sha256 = "e2956eda0e610414ea280574ccab35e5dd88b5b7f510353232fe157e5a598b7b",
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.76/mac-arm64/chromedriver-mac-arm64.zip",
sha256 = "7f0c7c77ee4a36b3d7a62b7372a44ad3cc287e4664a31822eab447fa10cdb62d",
strip_prefix = "chromedriver-mac-arm64",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
Expand Down
4 changes: 2 additions & 2 deletions dotnet/src/webdriver/DevTools/DevToolsDomains.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ public abstract class DevToolsDomains
// added to this array and to the method below.
private static int[] SupportedDevToolsVersions =>
[
148,
151,
150,
149,
];

private static DevToolsDomains? CreateDevToolsDomain(int protocolVersion, DevToolsSession session) => protocolVersion switch
{
148 => new V148.V148Domains(session),
151 => new V151.V151Domains(session),
150 => new V150.V150Domains(session),
149 => new V149.V149Domains(session),
_ => null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// <copyright file="V148Domains.cs" company="Selenium Committers">
// <copyright file="V151Domains.cs" company="Selenium Committers">
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
Expand All @@ -17,38 +17,38 @@
// under the License.
// </copyright>

namespace OpenQA.Selenium.DevTools.V148;
namespace OpenQA.Selenium.DevTools.V151;

/// <summary>
/// Class containing the domain implementation for version 148 of the DevTools Protocol.
/// Class containing the domain implementation for version 151 of the DevTools Protocol.
/// </summary>
public class V148Domains : DevToolsDomains
public class V151Domains : DevToolsDomains
{
private readonly DevToolsSessionDomains domains;
private readonly Lazy<V148Network> network;
private readonly Lazy<V148JavaScript> javaScript;
private readonly Lazy<V148Target> target;
private readonly Lazy<V148Log> log;
private readonly Lazy<V151Network> network;
private readonly Lazy<V151JavaScript> javaScript;
private readonly Lazy<V151Target> target;
private readonly Lazy<V151Log> log;

/// <summary>
/// Initializes a new instance of the V148Domains class.
/// Initializes a new instance of the V151Domains class.
/// </summary>
/// <param name="session">The DevToolsSession to use with this set of domains.</param>
/// <exception cref="ArgumentNullException">If <paramref name="session"/> is <see langword="null"/>.</exception>
public V148Domains(DevToolsSession session)
public V151Domains(DevToolsSession session)
{
ArgumentNullException.ThrowIfNull(session);
this.domains = new DevToolsSessionDomains(session);
this.network = new Lazy<V148Network>(() => new V148Network(domains.Network, domains.Fetch));
this.javaScript = new Lazy<V148JavaScript>(() => new V148JavaScript(domains.Runtime, domains.Page));
this.target = new Lazy<V148Target>(() => new V148Target(domains.Target));
this.log = new Lazy<V148Log>(() => new V148Log(domains.Log));
this.network = new Lazy<V151Network>(() => new V151Network(domains.Network, domains.Fetch));
this.javaScript = new Lazy<V151JavaScript>(() => new V151JavaScript(domains.Runtime, domains.Page));
this.target = new Lazy<V151Target>(() => new V151Target(domains.Target));
this.log = new Lazy<V151Log>(() => new V151Log(domains.Log));
}

/// <summary>
/// Gets the DevTools Protocol version for which this class is valid.
/// </summary>
public static int DevToolsVersion => 148;
public static int DevToolsVersion => 151;

/// <summary>
/// Gets the version-specific domains for the DevTools session. This value must be cast to a version specific type to be at all useful.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// <copyright file="V148JavaScript.cs" company="Selenium Committers">
// <copyright file="V151JavaScript.cs" company="Selenium Committers">
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
Expand All @@ -17,26 +17,26 @@
// under the License.
// </copyright>

using OpenQA.Selenium.DevTools.V148.Page;
using OpenQA.Selenium.DevTools.V148.Runtime;
using OpenQA.Selenium.DevTools.V151.Page;
using OpenQA.Selenium.DevTools.V151.Runtime;

namespace OpenQA.Selenium.DevTools.V148;
namespace OpenQA.Selenium.DevTools.V151;

/// <summary>
/// Class containing the JavaScript implementation for version 148 of the DevTools Protocol.
/// Class containing the JavaScript implementation for version 151 of the DevTools Protocol.
/// </summary>
public class V148JavaScript : JavaScript
public class V151JavaScript : JavaScript
{
private readonly RuntimeAdapter runtime;
private readonly PageAdapter page;

/// <summary>
/// Initializes a new instance of the <see cref="V148JavaScript"/> class.
/// Initializes a new instance of the <see cref="V151JavaScript"/> class.
/// </summary>
/// <param name="runtime">The DevTools Protocol adapter for the Runtime domain.</param>
/// <param name="page">The DevTools Protocol adapter for the Page domain.</param>
/// <exception cref="ArgumentNullException">If <paramref name="runtime"/> or <paramref name="page"/> are <see langword="null"/>.</exception>
public V148JavaScript(RuntimeAdapter runtime, PageAdapter page)
public V151JavaScript(RuntimeAdapter runtime, PageAdapter page)
{
ArgumentNullException.ThrowIfNull(runtime);
ArgumentNullException.ThrowIfNull(page);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// <copyright file="V148Log.cs" company="Selenium Committers">
// <copyright file="V151Log.cs" company="Selenium Committers">
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
Expand All @@ -17,23 +17,23 @@
// under the License.
// </copyright>

using OpenQA.Selenium.DevTools.V148.Log;
using OpenQA.Selenium.DevTools.V151.Log;

namespace OpenQA.Selenium.DevTools.V148;
namespace OpenQA.Selenium.DevTools.V151;

/// <summary>
/// Class containing the browser's log as referenced by version 148 of the DevTools Protocol.
/// Class containing the browser's log as referenced by version 151 of the DevTools Protocol.
/// </summary>
public class V148Log : DevTools.Log
public class V151Log : DevTools.Log
{
private readonly LogAdapter adapter;

/// <summary>
/// Initializes a new instance of the <see cref="V148Log"/> class.
/// Initializes a new instance of the <see cref="V151Log"/> class.
/// </summary>
/// <param name="adapter">The adapter for the Log domain.</param>
/// <exception cref="ArgumentNullException">If <paramref name="adapter"/> is <see langword="null"/>.</exception>
public V148Log(LogAdapter adapter)
public V151Log(LogAdapter adapter)
{
ArgumentNullException.ThrowIfNull(adapter);
this.adapter = adapter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// <copyright file="V148Network.cs" company="Selenium Committers">
// <copyright file="V151Network.cs" company="Selenium Committers">
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
Expand All @@ -18,26 +18,26 @@
// </copyright>

using System.Text;
using OpenQA.Selenium.DevTools.V148.Fetch;
using OpenQA.Selenium.DevTools.V148.Network;
using OpenQA.Selenium.DevTools.V151.Fetch;
using OpenQA.Selenium.DevTools.V151.Network;

namespace OpenQA.Selenium.DevTools.V148;
namespace OpenQA.Selenium.DevTools.V151;

/// <summary>
/// Class providing functionality for manipulating network calls using version 148 of the DevTools Protocol
/// Class providing functionality for manipulating network calls using version 151 of the DevTools Protocol
/// </summary>
public class V148Network : DevTools.Network
public class V151Network : DevTools.Network
{
private readonly FetchAdapter fetch;
private readonly NetworkAdapter network;

/// <summary>
/// Initializes a new instance of the <see cref="V148Network"/> class.
/// Initializes a new instance of the <see cref="V151Network"/> class.
/// </summary>
/// <param name="network">The adapter for the Network domain.</param>
/// <param name="fetch">The adapter for the Fetch domain.</param>
/// <exception cref="ArgumentNullException">If <paramref name="network"/> or <paramref name="fetch"/> are <see langword="null"/>.</exception>
public V148Network(NetworkAdapter network, FetchAdapter fetch)
public V151Network(NetworkAdapter network, FetchAdapter fetch)
{
ArgumentNullException.ThrowIfNull(network);
ArgumentNullException.ThrowIfNull(fetch);
Expand Down Expand Up @@ -231,9 +231,9 @@ public override async Task ContinueWithAuth(string requestId, string? userName,
await fetch.ContinueWithAuth(new ContinueWithAuthCommandSettings()
{
RequestId = requestId,
AuthChallengeResponse = new V148.Fetch.AuthChallengeResponse()
AuthChallengeResponse = new V151.Fetch.AuthChallengeResponse()
{
Response = V148.Fetch.AuthChallengeResponseResponseValues.ProvideCredentials,
Response = V151.Fetch.AuthChallengeResponseResponseValues.ProvideCredentials,
Username = userName,
Password = password
}
Expand All @@ -250,9 +250,9 @@ public override async Task CancelAuth(string requestId)
await fetch.ContinueWithAuth(new ContinueWithAuthCommandSettings()
{
RequestId = requestId,
AuthChallengeResponse = new OpenQA.Selenium.DevTools.V148.Fetch.AuthChallengeResponse()
AuthChallengeResponse = new OpenQA.Selenium.DevTools.V151.Fetch.AuthChallengeResponse()
{
Response = V148.Fetch.AuthChallengeResponseResponseValues.CancelAuth
Response = V151.Fetch.AuthChallengeResponseResponseValues.CancelAuth
}
}).ConfigureAwait(false);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// <copyright file="V148Target.cs" company="Selenium Committers">
// <copyright file="V151Target.cs" company="Selenium Committers">
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
Expand All @@ -18,23 +18,23 @@
// </copyright>

using System.Collections.ObjectModel;
using OpenQA.Selenium.DevTools.V148.Target;
using OpenQA.Selenium.DevTools.V151.Target;

namespace OpenQA.Selenium.DevTools.V148;
namespace OpenQA.Selenium.DevTools.V151;

/// <summary>
/// Class providing functionality for manipulating targets for version 148 of the DevTools Protocol
/// Class providing functionality for manipulating targets for version 151 of the DevTools Protocol
/// </summary>
public class V148Target : DevTools.Target
public class V151Target : DevTools.Target
{
private readonly TargetAdapter adapter;

/// <summary>
/// Initializes a new instance of the <see cref="V148Target"/> class.
/// Initializes a new instance of the <see cref="V151Target"/> class.
/// </summary>
/// <param name="adapter">The adapter for the Target domain.</param>
/// <exception cref="ArgumentNullException">If <paramref name="adapter"/> is <see langword="null"/>.</exception>
public V148Target(TargetAdapter adapter)
public V151Target(TargetAdapter adapter)
{
ArgumentNullException.ThrowIfNull(adapter);
this.adapter = adapter;
Expand Down
2 changes: 1 addition & 1 deletion dotnet/test/webdriver/DevTools/DevToolsConsoleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// under the License.
// </copyright>

using CurrentCdpVersion = OpenQA.Selenium.DevTools.V150;
using CurrentCdpVersion = OpenQA.Selenium.DevTools.V151;

namespace OpenQA.Selenium.Tests.DevTools;

Expand Down
2 changes: 1 addition & 1 deletion dotnet/test/webdriver/DevTools/DevToolsLogTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// under the License.
// </copyright>

using CurrentCdpVersion = OpenQA.Selenium.DevTools.V150;
using CurrentCdpVersion = OpenQA.Selenium.DevTools.V151;

namespace OpenQA.Selenium.Tests.DevTools;

Expand Down
2 changes: 1 addition & 1 deletion dotnet/test/webdriver/DevTools/DevToolsNetworkTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// under the License.
// </copyright>

using CurrentCdpVersion = OpenQA.Selenium.DevTools.V150;
using CurrentCdpVersion = OpenQA.Selenium.DevTools.V151;

namespace OpenQA.Selenium.Tests.DevTools;

Expand Down
2 changes: 1 addition & 1 deletion dotnet/test/webdriver/DevTools/DevToolsPerformanceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// under the License.
// </copyright>

using CurrentCdpVersion = OpenQA.Selenium.DevTools.V150;
using CurrentCdpVersion = OpenQA.Selenium.DevTools.V151;

namespace OpenQA.Selenium.Tests.DevTools;

Expand Down
2 changes: 1 addition & 1 deletion dotnet/test/webdriver/DevTools/DevToolsProfilerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// under the License.
// </copyright>

using CurrentCdpVersion = OpenQA.Selenium.DevTools.V150;
using CurrentCdpVersion = OpenQA.Selenium.DevTools.V151;

namespace OpenQA.Selenium.Tests.DevTools;

Expand Down
2 changes: 1 addition & 1 deletion dotnet/test/webdriver/DevTools/DevToolsSecurityTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// under the License.
// </copyright>

using CurrentCdpVersion = OpenQA.Selenium.DevTools.V150;
using CurrentCdpVersion = OpenQA.Selenium.DevTools.V151;

namespace OpenQA.Selenium.Tests.DevTools;

Expand Down
2 changes: 1 addition & 1 deletion dotnet/test/webdriver/DevTools/DevToolsTabsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// under the License.
// </copyright>

using CurrentCdpVersion = OpenQA.Selenium.DevTools.V150;
using CurrentCdpVersion = OpenQA.Selenium.DevTools.V151;

namespace OpenQA.Selenium.Tests.DevTools;

Expand Down
4 changes: 2 additions & 2 deletions dotnet/test/webdriver/DevTools/DevToolsTargetTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
// under the License.
// </copyright>

using CurrentCdpVersion = OpenQA.Selenium.DevTools.V150;
using CurrentCdpVersion = OpenQA.Selenium.DevTools.V151;

namespace OpenQA.Selenium.Tests.DevTools;

[TestFixture]
public class DevToolsTargetTests : DevToolsTestFixture
{
private const int id = 150;
private const int id = 151;

[Test]
[IgnoreBrowser(Browser.IE, "IE does not support Chrome DevTools Protocol")]
Expand Down
Loading
Loading