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

Fix for AUTO_WEBVIEW in MobileCapabilityType #1958

Closed
wants to merge 1 commit into from

Conversation

FiniH
Copy link

@FiniH FiniH commented Jul 11, 2023

Changed value for AUTO_WEBVIEW from 'autoWebview' to 'autoWebView'.

Change list

Please provide briefly described change list which are you going to propose.

  • Changing the value for MobileCapabilityType.AUTO_WEBVIEW from 'autoWebview' to 'autoWebView'.

Types of changes

What types of changes are you proposing/introducing to Java client?
Put an x in the boxes that apply

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Details

Please provide more details about changes if it is necessary. If there are new features you can provide code samples which show the way they
work and possible use cases. Also you can create gists with pasted java code samples or put them here using markdown.
About markdown please read Mastering markdown and Writing on GitHub

I realized while using the MobileCapabilityType.AUTO_WEBVIEW that the value for the type is 'autoWebview' and not 'autoWebView'. The latter seems to be the correct value though as my app test actually crashed on me until I used the 'autoWebView' string instead of the type itself. This is why I propose this change to be in the project itself to I can use the type in the future and not depend on the 'autoWebView' capability using the string anymore.

Changed value for AUTO_WEBVIEW from 'autoWebview' to 'autoWebView'
@linux-foundation-easycla
Copy link

CLA Not Signed

@@ -85,7 +85,7 @@ public interface MobileCapabilityType extends CapabilityType {
/**
* Move directly into Webview context. Default false.
*/
String AUTO_WEBVIEW = "autoWebview";
String AUTO_WEBVIEW = "autoWebView";
Copy link
Collaborator

Choose a reason for hiding this comment

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

It doesn't seem to be a valid fix

@mykola-mokhnach
Copy link
Contributor

We should probably deprecate this whole interface for good.
One should use options in order to create a new session

@mykola-mokhnach
Copy link
Contributor

The class has been marked for deprecation

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

Successfully merging this pull request may close these issues.

3 participants