Skip to content

feat: add satellites in set_location#620

Merged
KazuCocoa merged 2 commits intoappium:masterfrom
KazuCocoa:add-satellites
Jul 21, 2021
Merged

feat: add satellites in set_location#620
KazuCocoa merged 2 commits intoappium:masterfrom
KazuCocoa:add-satellites

Conversation

@KazuCocoa
Copy link
Copy Markdown
Member

No description provided.

longitude: String or numeric value between -180.0 and 180.0
altitude: String or numeric value (Android real device only)
speed: String or numeric value larger than 0.0 (Android real devices only)
satellites: String or numeric value since Appium 1.22.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We could have a more precise documentation string here:
Count of active GPS satellites in range 1..12. Only works for Emulators.

driver = android_w3c_driver()
httpretty.register_uri(httpretty.POST, appium_command('/session/1234567890/location'))
assert isinstance(driver.set_location(11.1, 22.2, 33.3, 23.2), WebDriver)
assert isinstance(driver.set_location(11.1, 22.2, 33.3, 23.2, 0), WebDriver)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

zero is not an acceptable value

@KazuCocoa KazuCocoa merged commit cfb6ee6 into appium:master Jul 21, 2021
@KazuCocoa KazuCocoa deleted the add-satellites branch July 21, 2021 17:11
KazuCocoa added a commit that referenced this pull request Aug 29, 2021
* feat: add satellites in set_location

* fix review
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.

2 participants