Skip to content

feat(options): add missing Android, UiAutomator2, and Espresso capabilities - #2503

Open
hoanle0126 wants to merge 1 commit into
appium:masterfrom
hoanle0126:feat/android-driver-options-parity
Open

hoanle0126 wants to merge 1 commit into
appium:masterfrom
hoanle0126:feat/android-driver-options-parity

Conversation

@hoanle0126

Copy link
Copy Markdown
Contributor

Change list

Add typed option interfaces on UiAutomator2Options and EspressoOptions for capabilities supported by appium-android-driver and appium-uiautomator2-driver that did not have getters and setters yet.

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)

Details

Shared Android options added to both UiAutomator2Options and EspressoOptions:

  • ADB and server: adbListenAllNetwork, allowOfflineDevices, skipSettingsAppReinstall
  • App and device: dontStopAppOnReset, timeZone
  • Web context and BiDi: autoWebviewName, chromedriverForwardBiDi, chromedriverGrantPermissions, enableWebviewDetailsCollection

UiAutomator2-only options added to UiAutomator2Options:

  • enableAccessibilityEventsService (added in appium-uiautomator2-driver 9.1.0), forceAppLaunch, shouldTerminateApp
UiAutomator2Options options = new UiAutomator2Options()
        .enableBiDi()
        .chromedriverForwardBiDi()
        .enableAccessibilityEventsService()
        .setTimeZone("America/New_York");

This branch has not been deployed

No deployments
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.

1 participant