waitForSetLocationToEnd
This is a synchronized command that waits until setLocationPlaybackFile ends or times out. It is only valid when using setLocationPlaybackFile with a CSV file.
It returns false if it times out.
Name | Value | Description |
---|---|---|
timeout | int >= 0 | Timeout for the command in milliseconds |
SetLocation of Device
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");
String csvPath = "/Users/Experitest/Documents/locations.csv";
...
...
// This command sets a series of locations.
seetest.setLocationPlaybackFile(csvPath, 1000, "gps");
seetest.waitForSetLocationToEnd(10000);