public VehicleDetailsScreen SelectVehicle()
        {
            Settings.AppContext.Tap(ResultListItem);
            VehicleDetailsScreen details = new VehicleDetailsScreen(Settings.AppContext);

            Settings.AppContext.WaitForElement(details.lblValue);
            return(details);
        }
 public SearchScreen(IApp app) : base(app)
 {
     _locationsScreen = new LocationsScreen(app);
     _pickerDialog    = new PickerDialog(app);
     _detailsScreen   = new VehicleDetailsScreen(app);
     _resultsScreen   = new SearchResultsScreen(app);
     _entryDialog     = new EntryDialog(app);
     _drawer          = new Drawer(app);
     Successful       = false;
 }
        public void BeforeEachTest()
        {
            {
                string path = "../../com.lkqcorp.rebuilders.qc.apk";
                Settings.AppContext = ConfigureApp
                                      .Android
                                      .EnableLocalScreenshots()
                                      .ApkFile(path)
                                      .StartApp();

                homeScreen    = new HomeScreen(Settings.AppContext);
                details       = new VehicleDetailsScreen(Settings.AppContext);
                searchResults = new SearchResultsScreen(Settings.AppContext);
                homeScreen.SelectLocation("LKQ London");
                //homeScreen.SetPreferredLocation();
                searchResults.SelectVehicle();
            }
        }