Skip to content

Commit a25afbb

Browse files
[build] Automated Browser Version Update with CDP (#17873)
Update pinned browser versions Co-authored-by: Selenium CI Bot <selenium-ci@users.noreply.github.com> Co-authored-by: Titus Fortner <titusfortner@users.noreply.github.com>
1 parent 960abd2 commit a25afbb

35 files changed

Lines changed: 445 additions & 200 deletions

common/devtools/chromium/v148/browser_protocol.pdl renamed to common/devtools/chromium/v151/browser_protocol.pdl

Lines changed: 298 additions & 53 deletions
Large diffs are not rendered by default.
File renamed without changes.

‎common/repositories.bzl‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ def pin_browsers():
1212

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

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

201201
http_archive(
202202
name = "linux_chrome",
203-
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.71/linux64/chrome-linux64.zip",
204-
sha256 = "6bd04aab53fba1544ce6027d9daddb24137295033124a61ecdf9840d785792e9",
203+
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.76/linux64/chrome-linux64.zip",
204+
sha256 = "d9e4c5916f77e737f22056cab47cd8abb7d39ebec559500ffc2d6f3e02106a7e",
205205
build_file_content = """
206206
load("@aspect_rules_js//js:defs.bzl", "js_library")
207207
package(default_visibility = ["//visibility:public"])
@@ -221,8 +221,8 @@ js_library(
221221
)
222222
http_archive(
223223
name = "mac_chrome",
224-
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.71/mac-arm64/chrome-mac-arm64.zip",
225-
sha256 = "1c516b5d6c00a074034d5ce03dc1cc9bd2cde2a09293d9613244e0bc153cb80f",
224+
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.76/mac-arm64/chrome-mac-arm64.zip",
225+
sha256 = "4d727601939c51719d2b5ff7d2cd57c44fab6d2529f9f1d2e5769939b86590bf",
226226
strip_prefix = "chrome-mac-arm64",
227227
patch_cmds = [
228228
"mv 'Google Chrome for Testing.app' Chrome.app",
@@ -242,8 +242,8 @@ js_library(
242242
)
243243
http_archive(
244244
name = "linux_chromedriver",
245-
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.71/linux64/chromedriver-linux64.zip",
246-
sha256 = "89b11804aa50b90b4821b19311f4bf688ce8d394484b2eea08bbcffd5644c1d8",
245+
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.76/linux64/chromedriver-linux64.zip",
246+
sha256 = "b80c87a1a41ec5209163f6fbe1e139d5aca7b632116707097fe9a61302e8e555",
247247
strip_prefix = "chromedriver-linux64",
248248
build_file_content = """
249249
load("@aspect_rules_js//js:defs.bzl", "js_library")
@@ -260,8 +260,8 @@ js_library(
260260

261261
http_archive(
262262
name = "mac_chromedriver",
263-
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.71/mac-arm64/chromedriver-mac-arm64.zip",
264-
sha256 = "e2956eda0e610414ea280574ccab35e5dd88b5b7f510353232fe157e5a598b7b",
263+
url = "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.76/mac-arm64/chromedriver-mac-arm64.zip",
264+
sha256 = "7f0c7c77ee4a36b3d7a62b7372a44ad3cc287e4664a31822eab447fa10cdb62d",
265265
strip_prefix = "chromedriver-mac-arm64",
266266
build_file_content = """
267267
load("@aspect_rules_js//js:defs.bzl", "js_library")

‎dotnet/src/webdriver/DevTools/DevToolsDomains.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ public abstract class DevToolsDomains
3333
// added to this array and to the method below.
3434
private static int[] SupportedDevToolsVersions =>
3535
[
36-
148,
36+
151,
3737
150,
3838
149,
3939
];
4040

4141
private static DevToolsDomains? CreateDevToolsDomain(int protocolVersion, DevToolsSession session) => protocolVersion switch
4242
{
43-
148 => new V148.V148Domains(session),
43+
151 => new V151.V151Domains(session),
4444
150 => new V150.V150Domains(session),
4545
149 => new V149.V149Domains(session),
4646
_ => null

dotnet/src/webdriver/DevTools/v148/V148Domains.cs renamed to dotnet/src/webdriver/DevTools/v151/V151Domains.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <copyright file="V148Domains.cs" company="Selenium Committers">
1+
// <copyright file="V151Domains.cs" company="Selenium Committers">
22
// Licensed to the Software Freedom Conservancy (SFC) under one
33
// or more contributor license agreements. See the NOTICE file
44
// distributed with this work for additional information
@@ -17,38 +17,38 @@
1717
// under the License.
1818
// </copyright>
1919

20-
namespace OpenQA.Selenium.DevTools.V148;
20+
namespace OpenQA.Selenium.DevTools.V151;
2121

2222
/// <summary>
23-
/// Class containing the domain implementation for version 148 of the DevTools Protocol.
23+
/// Class containing the domain implementation for version 151 of the DevTools Protocol.
2424
/// </summary>
25-
public class V148Domains : DevToolsDomains
25+
public class V151Domains : DevToolsDomains
2626
{
2727
private readonly DevToolsSessionDomains domains;
28-
private readonly Lazy<V148Network> network;
29-
private readonly Lazy<V148JavaScript> javaScript;
30-
private readonly Lazy<V148Target> target;
31-
private readonly Lazy<V148Log> log;
28+
private readonly Lazy<V151Network> network;
29+
private readonly Lazy<V151JavaScript> javaScript;
30+
private readonly Lazy<V151Target> target;
31+
private readonly Lazy<V151Log> log;
3232

3333
/// <summary>
34-
/// Initializes a new instance of the V148Domains class.
34+
/// Initializes a new instance of the V151Domains class.
3535
/// </summary>
3636
/// <param name="session">The DevToolsSession to use with this set of domains.</param>
3737
/// <exception cref="ArgumentNullException">If <paramref name="session"/> is <see langword="null"/>.</exception>
38-
public V148Domains(DevToolsSession session)
38+
public V151Domains(DevToolsSession session)
3939
{
4040
ArgumentNullException.ThrowIfNull(session);
4141
this.domains = new DevToolsSessionDomains(session);
42-
this.network = new Lazy<V148Network>(() => new V148Network(domains.Network, domains.Fetch));
43-
this.javaScript = new Lazy<V148JavaScript>(() => new V148JavaScript(domains.Runtime, domains.Page));
44-
this.target = new Lazy<V148Target>(() => new V148Target(domains.Target));
45-
this.log = new Lazy<V148Log>(() => new V148Log(domains.Log));
42+
this.network = new Lazy<V151Network>(() => new V151Network(domains.Network, domains.Fetch));
43+
this.javaScript = new Lazy<V151JavaScript>(() => new V151JavaScript(domains.Runtime, domains.Page));
44+
this.target = new Lazy<V151Target>(() => new V151Target(domains.Target));
45+
this.log = new Lazy<V151Log>(() => new V151Log(domains.Log));
4646
}
4747

4848
/// <summary>
4949
/// Gets the DevTools Protocol version for which this class is valid.
5050
/// </summary>
51-
public static int DevToolsVersion => 148;
51+
public static int DevToolsVersion => 151;
5252

5353
/// <summary>
5454
/// Gets the version-specific domains for the DevTools session. This value must be cast to a version specific type to be at all useful.

dotnet/src/webdriver/DevTools/v148/V148JavaScript.cs renamed to dotnet/src/webdriver/DevTools/v151/V151JavaScript.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <copyright file="V148JavaScript.cs" company="Selenium Committers">
1+
// <copyright file="V151JavaScript.cs" company="Selenium Committers">
22
// Licensed to the Software Freedom Conservancy (SFC) under one
33
// or more contributor license agreements. See the NOTICE file
44
// distributed with this work for additional information
@@ -17,26 +17,26 @@
1717
// under the License.
1818
// </copyright>
1919

20-
using OpenQA.Selenium.DevTools.V148.Page;
21-
using OpenQA.Selenium.DevTools.V148.Runtime;
20+
using OpenQA.Selenium.DevTools.V151.Page;
21+
using OpenQA.Selenium.DevTools.V151.Runtime;
2222

23-
namespace OpenQA.Selenium.DevTools.V148;
23+
namespace OpenQA.Selenium.DevTools.V151;
2424

2525
/// <summary>
26-
/// Class containing the JavaScript implementation for version 148 of the DevTools Protocol.
26+
/// Class containing the JavaScript implementation for version 151 of the DevTools Protocol.
2727
/// </summary>
28-
public class V148JavaScript : JavaScript
28+
public class V151JavaScript : JavaScript
2929
{
3030
private readonly RuntimeAdapter runtime;
3131
private readonly PageAdapter page;
3232

3333
/// <summary>
34-
/// Initializes a new instance of the <see cref="V148JavaScript"/> class.
34+
/// Initializes a new instance of the <see cref="V151JavaScript"/> class.
3535
/// </summary>
3636
/// <param name="runtime">The DevTools Protocol adapter for the Runtime domain.</param>
3737
/// <param name="page">The DevTools Protocol adapter for the Page domain.</param>
3838
/// <exception cref="ArgumentNullException">If <paramref name="runtime"/> or <paramref name="page"/> are <see langword="null"/>.</exception>
39-
public V148JavaScript(RuntimeAdapter runtime, PageAdapter page)
39+
public V151JavaScript(RuntimeAdapter runtime, PageAdapter page)
4040
{
4141
ArgumentNullException.ThrowIfNull(runtime);
4242
ArgumentNullException.ThrowIfNull(page);

dotnet/src/webdriver/DevTools/v148/V148Log.cs renamed to dotnet/src/webdriver/DevTools/v151/V151Log.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <copyright file="V148Log.cs" company="Selenium Committers">
1+
// <copyright file="V151Log.cs" company="Selenium Committers">
22
// Licensed to the Software Freedom Conservancy (SFC) under one
33
// or more contributor license agreements. See the NOTICE file
44
// distributed with this work for additional information
@@ -17,23 +17,23 @@
1717
// under the License.
1818
// </copyright>
1919

20-
using OpenQA.Selenium.DevTools.V148.Log;
20+
using OpenQA.Selenium.DevTools.V151.Log;
2121

22-
namespace OpenQA.Selenium.DevTools.V148;
22+
namespace OpenQA.Selenium.DevTools.V151;
2323

2424
/// <summary>
25-
/// Class containing the browser's log as referenced by version 148 of the DevTools Protocol.
25+
/// Class containing the browser's log as referenced by version 151 of the DevTools Protocol.
2626
/// </summary>
27-
public class V148Log : DevTools.Log
27+
public class V151Log : DevTools.Log
2828
{
2929
private readonly LogAdapter adapter;
3030

3131
/// <summary>
32-
/// Initializes a new instance of the <see cref="V148Log"/> class.
32+
/// Initializes a new instance of the <see cref="V151Log"/> class.
3333
/// </summary>
3434
/// <param name="adapter">The adapter for the Log domain.</param>
3535
/// <exception cref="ArgumentNullException">If <paramref name="adapter"/> is <see langword="null"/>.</exception>
36-
public V148Log(LogAdapter adapter)
36+
public V151Log(LogAdapter adapter)
3737
{
3838
ArgumentNullException.ThrowIfNull(adapter);
3939
this.adapter = adapter;

dotnet/src/webdriver/DevTools/v148/V148Network.cs renamed to dotnet/src/webdriver/DevTools/v151/V151Network.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <copyright file="V148Network.cs" company="Selenium Committers">
1+
// <copyright file="V151Network.cs" company="Selenium Committers">
22
// Licensed to the Software Freedom Conservancy (SFC) under one
33
// or more contributor license agreements. See the NOTICE file
44
// distributed with this work for additional information
@@ -18,26 +18,26 @@
1818
// </copyright>
1919

2020
using System.Text;
21-
using OpenQA.Selenium.DevTools.V148.Fetch;
22-
using OpenQA.Selenium.DevTools.V148.Network;
21+
using OpenQA.Selenium.DevTools.V151.Fetch;
22+
using OpenQA.Selenium.DevTools.V151.Network;
2323

24-
namespace OpenQA.Selenium.DevTools.V148;
24+
namespace OpenQA.Selenium.DevTools.V151;
2525

2626
/// <summary>
27-
/// Class providing functionality for manipulating network calls using version 148 of the DevTools Protocol
27+
/// Class providing functionality for manipulating network calls using version 151 of the DevTools Protocol
2828
/// </summary>
29-
public class V148Network : DevTools.Network
29+
public class V151Network : DevTools.Network
3030
{
3131
private readonly FetchAdapter fetch;
3232
private readonly NetworkAdapter network;
3333

3434
/// <summary>
35-
/// Initializes a new instance of the <see cref="V148Network"/> class.
35+
/// Initializes a new instance of the <see cref="V151Network"/> class.
3636
/// </summary>
3737
/// <param name="network">The adapter for the Network domain.</param>
3838
/// <param name="fetch">The adapter for the Fetch domain.</param>
3939
/// <exception cref="ArgumentNullException">If <paramref name="network"/> or <paramref name="fetch"/> are <see langword="null"/>.</exception>
40-
public V148Network(NetworkAdapter network, FetchAdapter fetch)
40+
public V151Network(NetworkAdapter network, FetchAdapter fetch)
4141
{
4242
ArgumentNullException.ThrowIfNull(network);
4343
ArgumentNullException.ThrowIfNull(fetch);
@@ -231,9 +231,9 @@ public override async Task ContinueWithAuth(string requestId, string? userName,
231231
await fetch.ContinueWithAuth(new ContinueWithAuthCommandSettings()
232232
{
233233
RequestId = requestId,
234-
AuthChallengeResponse = new V148.Fetch.AuthChallengeResponse()
234+
AuthChallengeResponse = new V151.Fetch.AuthChallengeResponse()
235235
{
236-
Response = V148.Fetch.AuthChallengeResponseResponseValues.ProvideCredentials,
236+
Response = V151.Fetch.AuthChallengeResponseResponseValues.ProvideCredentials,
237237
Username = userName,
238238
Password = password
239239
}
@@ -250,9 +250,9 @@ public override async Task CancelAuth(string requestId)
250250
await fetch.ContinueWithAuth(new ContinueWithAuthCommandSettings()
251251
{
252252
RequestId = requestId,
253-
AuthChallengeResponse = new OpenQA.Selenium.DevTools.V148.Fetch.AuthChallengeResponse()
253+
AuthChallengeResponse = new OpenQA.Selenium.DevTools.V151.Fetch.AuthChallengeResponse()
254254
{
255-
Response = V148.Fetch.AuthChallengeResponseResponseValues.CancelAuth
255+
Response = V151.Fetch.AuthChallengeResponseResponseValues.CancelAuth
256256
}
257257
}).ConfigureAwait(false);
258258
}

dotnet/src/webdriver/DevTools/v148/V148Target.cs renamed to dotnet/src/webdriver/DevTools/v151/V151Target.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <copyright file="V148Target.cs" company="Selenium Committers">
1+
// <copyright file="V151Target.cs" company="Selenium Committers">
22
// Licensed to the Software Freedom Conservancy (SFC) under one
33
// or more contributor license agreements. See the NOTICE file
44
// distributed with this work for additional information
@@ -18,23 +18,23 @@
1818
// </copyright>
1919

2020
using System.Collections.ObjectModel;
21-
using OpenQA.Selenium.DevTools.V148.Target;
21+
using OpenQA.Selenium.DevTools.V151.Target;
2222

23-
namespace OpenQA.Selenium.DevTools.V148;
23+
namespace OpenQA.Selenium.DevTools.V151;
2424

2525
/// <summary>
26-
/// Class providing functionality for manipulating targets for version 148 of the DevTools Protocol
26+
/// Class providing functionality for manipulating targets for version 151 of the DevTools Protocol
2727
/// </summary>
28-
public class V148Target : DevTools.Target
28+
public class V151Target : DevTools.Target
2929
{
3030
private readonly TargetAdapter adapter;
3131

3232
/// <summary>
33-
/// Initializes a new instance of the <see cref="V148Target"/> class.
33+
/// Initializes a new instance of the <see cref="V151Target"/> class.
3434
/// </summary>
3535
/// <param name="adapter">The adapter for the Target domain.</param>
3636
/// <exception cref="ArgumentNullException">If <paramref name="adapter"/> is <see langword="null"/>.</exception>
37-
public V148Target(TargetAdapter adapter)
37+
public V151Target(TargetAdapter adapter)
3838
{
3939
ArgumentNullException.ThrowIfNull(adapter);
4040
this.adapter = adapter;

0 commit comments

Comments
 (0)