-
-
Notifications
You must be signed in to change notification settings - Fork 210
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 sensors support #555
Add sensors support #555
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left a comment, otherwise lgtm
lib/commands/actions.js
Outdated
* @param {number|string} value - Number to set as the sensor value. | ||
* @throws {Error} - If deviceType is not an emulator | ||
*/ | ||
commands.sensorSet = async function sensorSet (sensorType, value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which external API endpoint is supposed to trigger this method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mykola-mokhnach this is something I want to discuss with the community. We have two options here;
- using one endpoint per type of sensor. For ex; W3C already has a method for light sensor in progress. https://www.w3.org/TR/ambient-light/
- using one endpoint for all sensors.
I'd like to hear you guys feedback. I'll probably start the conversation later today in slack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say it is always safe to have a "mobile:" endpoint for such purpose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should require |
LGTM. Do not forget to add the same mobile command to uia2 and espresso after this PR is published |
Prepare Android driver to support sensors set for Emulators implemented on ADB
appium/appium-adb#456