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

feat: add disableSuppressAccessibilityService #376

Merged
merged 9 commits into from
Mar 30, 2020

Conversation

KazuCocoa
Copy link
Member

Depends on appium/appium-uiautomator2-server#289

[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","emulator-5554","shell","am","instrument","-w","--no-window-animation","-e DISABLE_SUPPRESS_ACCESSIBILITY_SERVICES true","io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"]

is the output of with disableSuppressAccessibilityService: true capability.

I tested with breakpoint to run with/without disableSuppressAccessibilityService with appium/appium-uiautomator2-server#289

@@ -252,6 +253,9 @@ class UiAutomator2Server {
if (this.disableWindowAnimation) {
cmd.push('--no-window-animation');
}
if (_.isBoolean(this.disableSuppressAccessibilityService)) {
cmd.push(`-e DISABLE_SUPPRESS_ACCESSIBILITY_SERVICES ${this.disableSuppressAccessibilityService}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

should it look like cmd.push('-e', 'DISABLE_SUPPRESS_ACCESSIBILITY_SERVICES', `${this.disableSuppressAccessibilityService}`) ?

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.

None yet

2 participants