public void LayersDemo() { app.Screenshot("Launch"); app.ScrollDownAndTap(q => q.Text("Layers")); app.WaitForElement(q => q.Id("map")); app.Screenshot("Map"); app.Device.SetLocation(37.7842, -122.4016); app.Tap(q => q.Id("my_location")); app.WaitForElement(q => q.Class("ImageView").Marked("My Location")); app.Screenshot("Enable My Location"); app.Tap(q => q.Class("ImageView").Marked("My Location")); pause(5000); app.Screenshot("Show My Location"); app.DoubleTap(q => q.Id("map")); pause(); app.DoubleTap(q => q.Id("map")); pause(); app.Screenshot("Zoomed In"); app.Tap(q => q.Id("traffic")); app.Screenshot("Show Traffic"); app.Tap(q => q.Id("buildings")); app.Screenshot("Hide Buildings"); app.Tap(q => q.Id("indoor")); app.Screenshot("Hide Indoor"); app.Tap(q => q.Id("layers_spinner")); app.WaitForElement(q => q.Text("Hybrid")); app.Tap(q => q.Text("Hybrid")); pause(); app.Screenshot("Hybrid"); }