Skip to content

Conversation

mykola-mokhnach
Copy link
Contributor

Change list

Continuing to add UiAutomator2 options.

Types of changes

  • 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)
public interface SupportsIsHeadlessOption<T extends BaseOptions<T>> extends
Capabilities, CanSetCapability<T> {
String IS_HEADLESS_OPTION = "isHeadless";

Copy link
Collaborator

Choose a reason for hiding this comment

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

does it make sense to add a method:

default T headless() { return setIsHeadless(true); }

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

public interface SupportsGpsEnabledOption<T extends BaseOptions<T>> extends
Capabilities, CanSetCapability<T> {
String GPS_ENABLED_OPTION = "gpsEnabled";

Copy link
Collaborator

Choose a reason for hiding this comment

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

does it make sense to add a method:

default T gpsEnabled() { return setGpsEnabled(true); }

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

@mykola-mokhnach mykola-mokhnach merged commit 093720f into appium:master Oct 25, 2021
@mykola-mokhnach mykola-mokhnach deleted the more_uia2_caps branch October 25, 2021 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants