title: UIAutomation working in iOS 6 but not in iOS 7 (UIATarget.setLocationWithOptions)
body: <p>I try to write UIAutomation test for a location based app. Here is my code:</p>
  <pre><code>var target = UIATarget.localTarget();
  var mainWindow = target.frontMostApp().mainWindow();  
  
  // speed is in meters/sec 
  var points = [
      {&quot;location&quot;:{&quot;latitude&quot;:46.783959176435,&quot;longitude&quot;:23.542576152853}, &quot;options&quot;:{&quot;speed&quot;:32.33869934082}},
      {&quot;location&quot;:{&quot;latitude&quot;:46.784235069873,&quot;longitude&quot;:23.542993452429}, &quot;options&quot;:{&quot;speed&quot;:33.44660949707}},
      {&quot;location&quot;:{&quot;latitude&quot;:46.784323173489,&quot;longitude&quot;:23.543161503691}, &quot;options&quot;:{&quot;speed&quot;:33.76908493042}},
      {&quot;location&quot;:{&quot;latitude&quot;:46.784514430638,&quot;longitude&quot;:23.54344429169}, &quot;options&quot;:{&quot;speed&quot;:34.434867858887}},
      {&quot;location&quot;:{&quot;latitude&quot;:46.784609053263,&quot;longitude&quot;:23.543600872392}, &quot;options&quot;:{&quot;speed&quot;:34.673755645752}},
      {&quot;location&quot;:{&quot;latitude&quot;:46.784701914083,&quot;longitude&quot;:23.54376055256}, &quot;options&quot;:{&quot;speed&quot;:34.920608520508}},
      {&quot;location&quot;:{&quot;latitude&quot;:46.784792299278,&quot;longitude&quot;:23.543917345257}, &quot;options&quot;:{&quot;speed&quot;:34.939456939697}},
      {&quot;location&quot;:{&quot;latitude&quot;:46.784869569202,&quot;longitude&quot;:23.54409146343}, &quot;options&quot;:{&quot;speed&quot;:34.837844848633}},
      {&quot;location&quot;:{&quot;latitude&quot;:46.784959115698,&quot;longitude&quot;:23.544272081608}, &quot;options&quot;:{&quot;speed&quot;:34.80908203125}},
      {&quot;location&quot;:{&quot;latitude&quot;:46.785085476228,&quot;longitude&quot;:23.544603009802}, &quot;options&quot;:{&quot;speed&quot;:34.722270965576}},
      {&quot;location&quot;:{&quot;latitude&quot;:46.785085476228,&quot;longitude&quot;:23.544603009802}, &quot;options&quot;:{&quot;speed&quot;:0.0}}
  ];
  
  var driveDetectionStarted;
  for (var i = 0; i &lt; points.length; i++){
      target.setLocationWithOptions(points[i].location,points[i].options); // send location update
      target.delay(0.2); // sleep until next location update
  }
  
  target.delay(1);
  if (mainWindow.staticTexts()[0].value() == &quot;Updates Received&quot;) {
      driveDetectionStarted = true;
  }
  if (driveDetectionStarted) {
      UIALogger.logPass(&quot;Location updates received as expected.&quot;);
  } else {
      UIALogger.logFail(&quot;Location updates logic failed.&quot;);
  }
  </code></pre>
  <p>The app has to receive location updates, and if everything is okay, then it will display a UILabel with the &quot;Updates Received&quot; text. This test is working on iOS 6, but I don't receive location updates on iOS 7. I tried on devices, since the target.delay(x) method doesn't work in the simulator with the new xcode. (I've tested, and it was working in the old xcode version.)</p>
  <p>Can anyone help me out to run the test on iOS 7? Does anyone face the same problem? (I plan to write more complex tests, but if I don't receive location updates, then I simple can't move on.)</p>