Skip to content

[dotnet] [bidi] Adjust proxy configuration for new sessions #15914

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 19, 2025
Merged
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
16 changes: 12 additions & 4 deletions dotnet/src/webdriver/BiDi/Session/ProxyConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
// under the License.
// </copyright>

using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace OpenQA.Selenium.BiDi.Session;
Expand All @@ -33,19 +34,26 @@ public record AutoDetectProxyConfiguration : ProxyConfiguration;

public record DirectProxyConfiguration : ProxyConfiguration;

public record ManualProxyConfiguration : ProxyConfiguration
public record ManualProxyConfiguration : ProxyConfiguration, ISocksProxyConfiguration
{
public string? FtpProxy { get; set; }

public string? HttpProxy { get; set; }

public string? SslProxy { get; set; }

public string? SocksProxy { get; set; }

public long? SocksVersion { get; set; }
public int? SocksVersion { get; set; }

public IEnumerable<string>? NoProxy { get; set; }
}

public record PacProxyConfiguration(string ProxyAutoConfigUrl) : ProxyConfiguration;

public record SystemProxyConfiguration : ProxyConfiguration;

public interface ISocksProxyConfiguration
{
public string? SocksProxy { get; set; }

public int? SocksVersion { get; set; } // 0..255
}
Loading