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

Add a possibility to retrieve battery info from real devices #164

Merged
merged 1 commit into from
May 7, 2018

Conversation

mykola-mokhnach
Copy link
Contributor

Copy link
Contributor

@imurchie imurchie left a comment

Choose a reason for hiding this comment

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

Does this work for emulated devices, too?

@mykola-mokhnach
Copy link
Contributor Author

The documentation says it should

@mykola-mokhnach
Copy link
Contributor Author

I'd like to add an integration test first after this functionality is present on the server side

return await this.uiautomator2.jwproxy.command('/appium/device/battery_info', 'GET', {});
const result = await this.uiautomator2.jwproxy.command('/appium/device/battery_info', 'GET', {});
// Give it the same name as in iOS
result.state = result.status;
Copy link
Member

Choose a reason for hiding this comment

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

thanks for the change

@mykola-mokhnach mykola-mokhnach merged commit 95e51a9 into appium:master May 7, 2018
@mykola-mokhnach mykola-mokhnach deleted the battery_info branch May 7, 2018 07:08
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