Skip to content

Commit

Permalink
Bump .NET assembly and CDP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Aug 10, 2021
1 parent f40638f commit 5496386
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 46 deletions.
4 changes: 2 additions & 2 deletions dotnet/selenium-dotnet-version.bzl
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# BUILD FILE SYNTAX: STARLARK

SE_VERSION = "4.0.0-beta4"
SE_VERSION = "4.0.0-rc1"
ASSEMBLY_VERSION = "4.0.0.0"
SUPPORTED_NET_FRAMEWORKS = ["net45", "net46", "net47", "net48"]
SUPPORTED_NET_STANDARD_VERSIONS = ["netstandard2.0", "netstandard2.1", "net5.0"]

SUPPORTED_DEVTOOLS_VERSIONS = [
"v85",
"v88",
"v89",
"v90",
"v91",
"v92",
]

ASSEMBLY_COMPANY = "Selenium Committers"
Expand Down
2 changes: 1 addition & 1 deletion dotnet/src/webdriver/DevTools/DevToolsDomains.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public abstract class DevToolsDomains
// added to this dictionary.
private static readonly Dictionary<int, Type> SupportedDevToolsVersions = new Dictionary<int, Type>()
{
{ 92, typeof(V92.V92Domains) },
{ 91, typeof(V91.V91Domains) },
{ 90, typeof(V90.V90Domains) },
{ 89, typeof(V89.V89Domains) },
{ 88, typeof(V88.V88Domains) },
{ 85, typeof(V85.V85Domains) }
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// <copyright file="V88Domains.cs" company="WebDriver Committers">
// <copyright file="V92Domains.cs" company="WebDriver 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 @@ -19,24 +19,24 @@
using System.Collections.Generic;
using System.Text;

namespace OpenQA.Selenium.DevTools.V88
namespace OpenQA.Selenium.DevTools.V92
{
/// <summary>
/// Class containing the domain implementation for version 88 of the DevTools Protocol.
/// </summary>
public class V88Domains : DevToolsDomains
public class V92Domains : DevToolsDomains
{
private DevToolsSessionDomains domains;

public V88Domains(DevToolsSession session)
public V92Domains(DevToolsSession session)
{
this.domains = new DevToolsSessionDomains(session);
}

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

/// <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 All @@ -46,21 +46,21 @@ public V88Domains(DevToolsSession session)
/// <summary>
/// Gets the object used for manipulating network information in the browser.
/// </summary>
public override DevTools.Network Network => new V88Network(domains.Network, domains.Fetch);
public override DevTools.Network Network => new V92Network(domains.Network, domains.Fetch);

/// <summary>
/// Gets the object used for manipulating the browser's JavaScript execution.
/// </summary>
public override JavaScript JavaScript => new V88JavaScript(domains.Runtime, domains.Page);
public override JavaScript JavaScript => new V92JavaScript(domains.Runtime, domains.Page);

/// <summary>
/// Gets the object used for manipulating DevTools Protocol targets.
/// </summary>
public override DevTools.Target Target => new V88Target(domains.Target);
public override DevTools.Target Target => new V92Target(domains.Target);

/// <summary>
/// Gets the object used for manipulating the browser's logs.
/// </summary>
public override DevTools.Log Log => new V88Log(domains.Log);
public override DevTools.Log Log => new V92Log(domains.Log);
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// <copyright file="V88JavaScript.cs" company="WebDriver Committers">
// <copyright file="V92JavaScript.cs" company="WebDriver 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,25 +18,25 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using OpenQA.Selenium.DevTools.V88.Page;
using OpenQA.Selenium.DevTools.V88.Runtime;
using OpenQA.Selenium.DevTools.V92.Page;
using OpenQA.Selenium.DevTools.V92.Runtime;

namespace OpenQA.Selenium.DevTools.V88
namespace OpenQA.Selenium.DevTools.V92
{
/// <summary>
/// Class containing the JavaScript implementation for version 88 of the DevTools Protocol.
/// </summary>
public class V88JavaScript : JavaScript
public class V92JavaScript : JavaScript
{
private RuntimeAdapter runtime;
private PageAdapter page;

/// <summary>
/// Initializes a new instance of the <see cref="V88JavaScript"/> class.
/// Initializes a new instance of the <see cref="V92JavaScript"/> 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>
public V88JavaScript(RuntimeAdapter runtime, PageAdapter page)
public V92JavaScript(RuntimeAdapter runtime, PageAdapter page)
{
this.runtime = runtime;
this.page = page;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// <copyright file="V88Log.cs" company="WebDriver Committers">
// <copyright file="V92Log.cs" company="WebDriver 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 @@ -20,22 +20,22 @@
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using OpenQA.Selenium.DevTools.V88.Log;
using OpenQA.Selenium.DevTools.V92.Log;

namespace OpenQA.Selenium.DevTools.V88
namespace OpenQA.Selenium.DevTools.V92
{
/// <summary>
/// Class containing the browser's log as referenced by version 88 of the DevTools Protocol.
/// </summary>
public class V88Log : DevTools.Log
public class V92Log : DevTools.Log
{
private LogAdapter adapter;

/// <summary>
/// Initializes a new instance of the <see cref="V88Log"/> class.
/// Initializes a new instance of the <see cref="V92Log"/> class.
/// </summary>
/// <param name="adapter">The adapter for the Log domain.</param>
public V88Log(LogAdapter adapter)
public V92Log(LogAdapter adapter)
{
this.adapter = adapter;
this.adapter.EntryAdded += OnAdapterEntryAdded;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// <copyright file="V88Network.cs" company="WebDriver Committers">
// <copyright file="V92Network.cs" company="WebDriver 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 @@ -20,25 +20,25 @@
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using OpenQA.Selenium.DevTools.V88.Fetch;
using OpenQA.Selenium.DevTools.V88.Network;
using OpenQA.Selenium.DevTools.V92.Fetch;
using OpenQA.Selenium.DevTools.V92.Network;

namespace OpenQA.Selenium.DevTools.V88
namespace OpenQA.Selenium.DevTools.V92
{
/// <summary>
/// Class providing functionality for manipulating network calls using version 88 of the DevTools Protocol
/// </summary>
public class V88Network : DevTools.Network
public class V92Network : DevTools.Network
{
private FetchAdapter fetch;
private NetworkAdapter network;

/// <summary>
/// Initializes a new instance of the <see cref="V88Network"/> class.
/// Initializes a new instance of the <see cref="V92Network"/> class.
/// </summary>
/// <param name="network">The adapter for the Network domain.</param>
/// <param name="fetch">The adapter for the Fetch domain.</param>
public V88Network(NetworkAdapter network, FetchAdapter fetch)
public V92Network(NetworkAdapter network, FetchAdapter fetch)
{
this.network = network;
this.fetch = fetch;
Expand Down Expand Up @@ -81,12 +81,12 @@ public override async Task DisableNetwork()
/// <returns>A task that represents the asynchronous operation.</returns>
public override async Task EnableFetchForAllPatterns()
{
await fetch.Enable(new OpenQA.Selenium.DevTools.V88.Fetch.EnableCommandSettings()
await fetch.Enable(new OpenQA.Selenium.DevTools.V92.Fetch.EnableCommandSettings()
{
Patterns = new OpenQA.Selenium.DevTools.V88.Fetch.RequestPattern[]
Patterns = new OpenQA.Selenium.DevTools.V92.Fetch.RequestPattern[]
{
new OpenQA.Selenium.DevTools.V88.Fetch.RequestPattern() { UrlPattern = "*", RequestStage = RequestStage.Request },
new OpenQA.Selenium.DevTools.V88.Fetch.RequestPattern() { UrlPattern = "*", RequestStage = RequestStage.Response }
new OpenQA.Selenium.DevTools.V92.Fetch.RequestPattern() { UrlPattern = "*", RequestStage = RequestStage.Request },
new OpenQA.Selenium.DevTools.V92.Fetch.RequestPattern() { UrlPattern = "*", RequestStage = RequestStage.Response }
},
HandleAuthRequests = true
});
Expand Down Expand Up @@ -194,9 +194,9 @@ public override async Task ContinueWithAuth(string requestId, string userName, s
await fetch.ContinueWithAuth(new ContinueWithAuthCommandSettings()
{
RequestId = requestId,
AuthChallengeResponse = new V88.Fetch.AuthChallengeResponse()
AuthChallengeResponse = new V92.Fetch.AuthChallengeResponse()
{
Response = V88.Fetch.AuthChallengeResponseResponseValues.ProvideCredentials,
Response = V92.Fetch.AuthChallengeResponseResponseValues.ProvideCredentials,
Username = userName,
Password = password
}
Expand All @@ -213,9 +213,9 @@ public override async Task CancelAuth(string requestId)
await fetch.ContinueWithAuth(new ContinueWithAuthCommandSettings()
{
RequestId = requestId,
AuthChallengeResponse = new OpenQA.Selenium.DevTools.V88.Fetch.AuthChallengeResponse()
AuthChallengeResponse = new OpenQA.Selenium.DevTools.V92.Fetch.AuthChallengeResponse()
{
Response = V88.Fetch.AuthChallengeResponseResponseValues.CancelAuth
Response = V92.Fetch.AuthChallengeResponseResponseValues.CancelAuth
}
});
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// <copyright file="V88Target.cs" company="WebDriver Committers">
// <copyright file="V92Target.cs" company="WebDriver 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 @@ -21,22 +21,22 @@
using System.Collections.ObjectModel;
using System.Text;
using System.Threading.Tasks;
using OpenQA.Selenium.DevTools.V88.Target;
using OpenQA.Selenium.DevTools.V92.Target;

namespace OpenQA.Selenium.DevTools.V88
namespace OpenQA.Selenium.DevTools.V92
{
/// <summary>
/// Class providing functionality for manipulating targets for version 88 of the DevTools Protocol
/// </summary>
public class V88Target : DevTools.Target
public class V92Target : DevTools.Target
{
private TargetAdapter adapter;

/// <summary>
/// Initializes a new instance of the <see cref="V88Target"/> class.
/// Initializes a new instance of the <see cref="V92Target"/> class.
/// </summary>
/// <param name="adapter">The adapter for the Target domain.</param>
public V88Target(TargetAdapter adapter)
public V92Target(TargetAdapter adapter)
{
this.adapter = adapter;
}
Expand Down

0 comments on commit 5496386

Please sign in to comment.