Cannot Set Geolocation - invalid argument: missing or invalid 'location'


#1

I’m running a Robot Framework test on mobile, and when I try to set geolocation, an exception is thrown.

InvalidArgumentException: Message: invalid argument: missing or invalid ‘location’
(Session info: chrome=72.0.3626.96)
(Driver info: chromedriver=2.46.628402 (536cd7adbad73a3783fdc2cab92ab2ba7ec361e1),platform=Windows NT 10.0.16299 x86_64)

This happens both on emulator and real device.

Robot Framework test:

Open Application    remote_url=${REMOTE URL}    
...                 platformName=${PLATFORM NAME}
...                 platformVersion=${PLATFORM VERSION}
...                 deviceName=${DEVICE NAME}
...                 browserName=Chrome
...                 automationName=UiAutomator2
Go To Url    https://www.google.pt
Set Location    49    123
(...)

What am I doing wrong?


Environment:

Appium Desktop: 1.10.0
Appium-Python-Client: 0.36
robotframework: 3.1.1
robotframework-appiumlibrary: 1.5.0.2
Chromedriver: 1.46
Chrome: 72.0
Platform: Android
Emulated/Real device: Both