Skip to content
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

[dotnet] remove non-w3c compliant capability code #13026

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

titusfortner
Copy link
Member

Description

  • Remove invalid capabilities
  • Update invalid capabilities to valid capabilities

Motivation and Context

As best as I can tell, if the capability isn't in this list it gets ignored when starting a session — https://github.com/SeleniumHQ/selenium/blob/selenium-4.14.0/dotnet/src/webdriver/WebDriver.cs#L652-L655

I don't know if the browser version and platform name code is necessary, but if it is looking for the old values it won't work.

Whatever is going on here, it can be cleaned up more, I just made some quick changes while I noticed it.

@@ -124,28 +79,28 @@ public string BrowserName
/// <summary>
/// Gets or sets the platform
/// </summary>
public Platform Platform
public Platform PlatformName
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI Build fails.

dotnet\src\webdriver\Remote\ReadOnlyDesiredCapabilities.cs(213,148): error CS1061: 'ReadOnlyDesiredCapabilities' does not contain a definition for 'Platform' and no accessible extension method 'Platform' accepting a first argument of type 'ReadOnlyDesiredCapabilities' could be found (are you missing a using directive or an assembly reference?)

@nvborisenko
Copy link
Member

I think it is still actual. Up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants