On Thu, Aug 28, 2014 at 4:29 PM, Jonah Stiennon [email protected] wrote:
I’ll take a look at this right now!
In the meantime, can you repost this to our New Forum at discuss.appium.io ? Thanks.
On Thursday, August 28, 2014 2:25:26 PM UTC-7, Ben Boral wrote:
Hi Jonah,
Have you been able to use setLocation() successfully?
I’m attempting to use it with the extremely simple case:
Location location = new Location(1, 1, 1);
appiumDriver.setLocation(location);
This yields an error related how location is specified. See below from Appium logs. Any help with this, such as sample code snippet, would be much appreciated.
info: <-- POST /wd/hub/session/603244c1-ff73-4227-9cb7-af07f0a94c19/location 500 151.991 ms - 193
debug: Socket data being routed.
debug: Got result from instruments: {“status”:17,“value”:“location not specified correctly”}
debug: Responding to client with error: {“status”:17,“value”:{“message”:“An error occurred while executing user supplied JavaScript.”,“origValue”:“location not specified correctly”},“sessionId”:“603244c1-ff73-4227-9cb7-af07f0a94c19”}
debug: [INST] 2014-08-28 20:42:37 +0000 Error: Error during eval: setLocationWithOptions@[native code]
eval code
eval@[native code]
startProcessing@file://localhost/Applications/Appium.app/Contents/Resources/node_modules/appium/0977A26B-81A8-44C8-B350-AF7A8C00E4CE/commands.js:120:30
bootstrap@file://localhost/Applications/Appium.app/Contents/Resources/node_modules/appium/BB489BDA-8783-44B4-8327-5217ED01E91C/bootstrap.js:18:29
global code@file://localhost/Applications/Appium.app/Contents/Resources/node_modules/appium/9D200DD6-D975-4964-8CC4-4D56440CB0D8/bootstrap-fe8fa37a970f98cc.js:9:10
debug: [INST] 2014-08-28 20:42:37 +0000 Debug: Running system command #52: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:17,“value”:“location not specified correctly”}…
Thanks,
Ben