You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit deprecates the AddAdditionalCapability method in the
driver-specific Options classes in favor of two methods. The first,
AddAdditionalOption, adds a capability to the top-level, global
section of a browser's desired capabilities section. The second
method adds a capability to a browser's specific set of options.
Accordingly, these methods are different for each browser's Options
class (AddAdditionalChromeOption for ChromeOptions,
AddAdditionalFirefoxOption for FirefoxOptions,
AddAdditionalInternetExplorerOption for InternetExplorerOptions, etc.).
Also, this commit completes the removal of the DesiredCapabilities
class by removing its visibility from the public API. All use cases
that previously required adding arbitrary capabilities to a
DesiredCapabilities instance should now be manageable by the browser-
specific options classes. Moreover, the ToCapabilities method of the
options classes now returns a read-only ICapabilities object. Users
who find these structures insufficient are encouraged to join the
project IRC or Slack channels to discuss where the deficiencies lie.
Likewise, downstream projects (like Appium) and cloud providers
(like SauceLabs, BrowserStack, etc.) that depend on the .NET language
bindings for functionality should be aware of this change, and should
take immediate steps to update their user-facing code and documentation
to match.
stringmessage=string.Format(CultureInfo.InvariantCulture,"There is already an option for the {0} capability. Please use the {1} instead.",capabilityName,typeSafeOptionName);
539
-
540
-
// TODO: Remove this if block when chromedriver bug 2371 is fixed
message=string.Format(CultureInfo.InvariantCulture,"The {0} capability is internal to the driver, and not intended to be set from users' code. Do not attempt to set this capability.",capabilityName);
stringmessage=string.Format(CultureInfo.InvariantCulture,"There is already an option for the {0} capability. Please use the {1} instead.",capabilityName,typeSafeOptionName);
0 commit comments