File tree Expand file tree Collapse file tree 3 files changed +0
-53
lines changed Expand file tree Collapse file tree 3 files changed +0
-53
lines changed Original file line number Diff line number Diff line change @@ -185,27 +185,6 @@ public ChromiumAndroidOptions AndroidOptions
185
185
set { this . androidOptions = value ; }
186
186
}
187
187
188
- /// <summary>
189
- /// Gets or sets a value indicating whether the <see cref="ChromiumDriver"/> instance
190
- /// should use the legacy OSS protocol dialect or a dialect compliant with the W3C
191
- /// WebDriver Specification.
192
- /// </summary>
193
- [ Obsolete ( "Spec Compliant Protocol is the only supported protocol" ) ]
194
- public bool UseSpecCompliantProtocol
195
- {
196
- get { return this . useSpecCompliantProtocol ; }
197
- set
198
- {
199
- if ( ! value )
200
- {
201
- throw new ArgumentException ( "Only the spec compliant protocol is supported, " +
202
- "Please update to W3C Syntax: " +
203
- "https://www.selenium.dev/blog/2022/legacy-protocol-support/" ) ;
204
- }
205
- this . useSpecCompliantProtocol = true ;
206
- }
207
- }
208
-
209
188
/// <summary>
210
189
/// Adds a single argument to the list of arguments to be appended to the browser executable command line.
211
190
/// </summary>
Original file line number Diff line number Diff line change @@ -34,8 +34,6 @@ public sealed class SafariDriverService : DriverService
34
34
{
35
35
private const string DefaultSafariDriverServiceExecutableName = "safaridriver" ;
36
36
37
- private bool useLegacyProtocol ;
38
-
39
37
private readonly static ILogger logger = Log . GetLogger < SafariDriverService > ( ) ;
40
38
41
39
/// <summary>
@@ -55,22 +53,6 @@ protected override DriverOptions GetDefaultDriverOptions()
55
53
return new SafariOptions ( ) ;
56
54
}
57
55
58
- /// <summary>
59
- /// Gets or sets a value indicating whether to use the default open-source project
60
- /// dialect of the protocol instead of the default dialect compliant with the
61
- /// W3C WebDriver Specification.
62
- /// </summary>
63
- /// <remarks>
64
- /// This is only valid for versions of the driver for Safari that target Safari 12
65
- /// or later, and will result in an error if used with prior versions of the driver.
66
- /// </remarks>
67
- [ Obsolete ( "Only w3c protocol is currently supported" ) ]
68
- public bool UseLegacyProtocol
69
- {
70
- get { return this . useLegacyProtocol ; }
71
- set { this . useLegacyProtocol = value ; }
72
- }
73
-
74
56
/// <summary>
75
57
/// Gets the command-line arguments for the driver service.
76
58
/// </summary>
@@ -79,11 +61,6 @@ protected override string CommandLineArguments
79
61
get
80
62
{
81
63
StringBuilder argsBuilder = new StringBuilder ( base . CommandLineArguments ) ;
82
- if ( this . useLegacyProtocol )
83
- {
84
- argsBuilder . Append ( " --legacy" ) ;
85
- }
86
-
87
64
return argsBuilder . ToString ( ) ;
88
65
}
89
66
}
Original file line number Diff line number Diff line change @@ -13,14 +13,5 @@ public void RunAfterAnyTests()
13
13
EnvironmentManager . Instance . CloseCurrentDriver ( ) ;
14
14
EnvironmentManager . Instance . WebServer . Stop ( ) ;
15
15
}
16
-
17
- [ Test ]
18
- public void W3CFalse ( )
19
- {
20
- Assert . Throws < ArgumentException > ( ( ) => new ChromeOptions
21
- {
22
- UseSpecCompliantProtocol = false
23
- } ) ;
24
- }
25
16
}
26
17
}
You can’t perform that action at this time.
0 commit comments