@@ -26,10 +26,9 @@ namespace OpenQA.Selenium.Remote
26
26
/// Class to Create the capabilities of the browser you require for <see cref="IWebDriver"/>.
27
27
/// If you wish to use default values use the static methods
28
28
/// </summary>
29
- public class DesiredCapabilities : ICapabilities , ISpecificationCompliant
29
+ public class DesiredCapabilities : ICapabilities
30
30
{
31
31
private readonly Dictionary < string , object > capabilities = new Dictionary < string , object > ( ) ;
32
- private bool isSpecCompliant ;
33
32
34
33
/// <summary>
35
34
/// Initializes a new instance of the <see cref="DesiredCapabilities"/> class
@@ -101,7 +100,6 @@ internal DesiredCapabilities(string browser, string version, Platform platform,
101
100
this . SetCapability ( CapabilityType . BrowserName , browser ) ;
102
101
this . SetCapability ( CapabilityType . Version , version ) ;
103
102
this . SetCapability ( CapabilityType . Platform , platform ) ;
104
- this . isSpecCompliant = isSpecCompliant ;
105
103
}
106
104
107
105
/// <summary>
@@ -179,15 +177,6 @@ public bool AcceptInsecureCerts
179
177
}
180
178
}
181
179
182
- /// <summary>
183
- /// Gets or sets a value indicating whether this set of capabilities is compliant with the W3C WebDriver specification.
184
- /// </summary>
185
- bool ISpecificationCompliant . IsSpecificationCompliant
186
- {
187
- get { return this . isSpecCompliant ; }
188
- set { this . isSpecCompliant = value ; }
189
- }
190
-
191
180
/// <summary>
192
181
/// Gets the internal capabilities dictionary.
193
182
/// </summary>
@@ -215,7 +204,6 @@ public static DesiredCapabilities Firefox()
215
204
public static DesiredCapabilities PhantomJS ( )
216
205
{
217
206
DesiredCapabilities dc = new DesiredCapabilities ( "phantomjs" , string . Empty , new Platform ( PlatformType . Any ) ) ;
218
- dc . isSpecCompliant = false ;
219
207
return dc ;
220
208
}
221
209
@@ -237,7 +225,6 @@ public static DesiredCapabilities InternetExplorer()
237
225
public static DesiredCapabilities Edge ( )
238
226
{
239
227
DesiredCapabilities dc = new DesiredCapabilities ( "MicrosoftEdge" , string . Empty , new Platform ( PlatformType . Windows ) ) ;
240
- dc . isSpecCompliant = false ;
241
228
return dc ;
242
229
}
243
230
@@ -248,7 +235,6 @@ public static DesiredCapabilities Edge()
248
235
public static DesiredCapabilities HtmlUnit ( )
249
236
{
250
237
DesiredCapabilities dc = new DesiredCapabilities ( "htmlunit" , string . Empty , new Platform ( PlatformType . Any ) ) ;
251
- dc . isSpecCompliant = false ;
252
238
return dc ;
253
239
}
254
240
@@ -260,7 +246,6 @@ public static DesiredCapabilities HtmlUnitWithJavaScript()
260
246
{
261
247
DesiredCapabilities dc = new DesiredCapabilities ( "htmlunit" , string . Empty , new Platform ( PlatformType . Any ) ) ;
262
248
dc . SetCapability ( CapabilityType . IsJavaScriptEnabled , true ) ;
263
- dc . isSpecCompliant = false ;
264
249
return dc ;
265
250
}
266
251
@@ -293,7 +278,6 @@ public static DesiredCapabilities Chrome()
293
278
{
294
279
// This is strangely inconsistent.
295
280
DesiredCapabilities dc = new DesiredCapabilities ( "chrome" , string . Empty , new Platform ( PlatformType . Any ) ) ;
296
- dc . isSpecCompliant = false ;
297
281
return dc ;
298
282
}
299
283
@@ -315,7 +299,6 @@ public static DesiredCapabilities Android()
315
299
public static DesiredCapabilities Opera ( )
316
300
{
317
301
DesiredCapabilities dc = new DesiredCapabilities ( "opera" , string . Empty , new Platform ( PlatformType . Any ) ) ;
318
- dc . isSpecCompliant = false ;
319
302
return dc ;
320
303
}
321
304
@@ -327,7 +310,6 @@ public static DesiredCapabilities Opera()
327
310
public static DesiredCapabilities Safari ( )
328
311
{
329
312
DesiredCapabilities dc = new DesiredCapabilities ( "safari" , string . Empty , new Platform ( PlatformType . Mac ) ) ;
330
- dc . isSpecCompliant = false ;
331
313
return dc ;
332
314
}
333
315
0 commit comments