@@ -506,58 +506,6 @@ protected void AddAdditionalChromiumOption(string optionName, object optionValue
506
506
this . additionalChromeOptions [ optionName ] = optionValue ;
507
507
}
508
508
509
- /// <summary>
510
- /// Provides a means to add additional capabilities not yet added as type safe options
511
- /// for the Chromium driver.
512
- /// </summary>
513
- /// <param name="capabilityName">The name of the capability to add.</param>
514
- /// <param name="capabilityValue">The value of the capability to add.</param>
515
- /// <exception cref="ArgumentException">
516
- /// thrown when attempting to add a capability for which there is already a type safe option, or
517
- /// when <paramref name="capabilityName"/> is <see langword="null"/> or the empty string.
518
- /// </exception>
519
- /// <remarks>Calling <see cref="AddAdditionalCapability(string, object)"/>
520
- /// where <paramref name="capabilityName"/> has already been added will overwrite the
521
- /// existing value with the new value in <paramref name="capabilityValue"/>.
522
- /// Also, by default, calling this method adds capabilities to the options object passed to
523
- /// chromedriver.exe.</remarks>
524
- [ Obsolete ( "Use the temporary AddAdditionalOption method or the AddAdditionalChromeOption method for adding additional options" ) ]
525
- public override void AddAdditionalCapability ( string capabilityName , object capabilityValue )
526
- {
527
- // Add the capability to the chromeOptions object by default. This is to handle
528
- // the 80% case where the chromedriver team adds a new option in chromedriver.exe
529
- // and the bindings have not yet had a type safe option added.
530
- this . AddAdditionalCapability ( capabilityName , capabilityValue , false ) ;
531
- }
532
-
533
- /// <summary>
534
- /// Provides a means to add additional capabilities not yet added as type safe options
535
- /// for the Chromium driver.
536
- /// </summary>
537
- /// <param name="capabilityName">The name of the capability to add.</param>
538
- /// <param name="capabilityValue">The value of the capability to add.</param>
539
- /// <param name="isGlobalCapability">Indicates whether the capability is to be set as a global
540
- /// capability for the driver instead of a Chromium-specific option.</param>
541
- /// <exception cref="ArgumentException">
542
- /// thrown when attempting to add a capability for which there is already a type safe option, or
543
- /// when <paramref name="capabilityName"/> is <see langword="null"/> or the empty string.
544
- /// </exception>
545
- /// <remarks>Calling <see cref="AddAdditionalCapability(string, object, bool)"/>
546
- /// where <paramref name="capabilityName"/> has already been added will overwrite the
547
- /// existing value with the new value in <paramref name="capabilityValue"/></remarks>
548
- [ Obsolete ( "Use the temporary AddAdditionalOption method or the AddAdditionalChromeOption method for adding additional options" ) ]
549
- public void AddAdditionalCapability ( string capabilityName , object capabilityValue , bool isGlobalCapability )
550
- {
551
- if ( isGlobalCapability )
552
- {
553
- this . AddAdditionalOption ( capabilityName , capabilityValue ) ;
554
- }
555
- else
556
- {
557
- this . AddAdditionalChromiumOption ( capabilityName , capabilityValue ) ;
558
- }
559
- }
560
-
561
509
/// <summary>
562
510
/// Returns DesiredCapabilities for Chromium with these options included as
563
511
/// capabilities. This does not copy the options. Further changes will be
0 commit comments