コード例 #1
0
        public SettingsScreen TapSettings()
        {
            Settings.AppContext.Tap(DrawerButton);
            SettingsScreen settings = new SettingsScreen(Settings.AppContext);

            return(settings);
        }
コード例 #2
0
        public void NavigateToSettings()
        {
            SettingsScreen settings = new SettingsScreen(Settings.AppContext);

            drawer.NavigateTo("Settings");
            Settings.AppContext.WaitForElement(settings.pkPreferredLocationQuery);
            Settings.AppContext.Screenshot("Verify settings screen loaded correctly");
        }
コード例 #3
0
        public void BeforeEachTest()
        {
            {
                path = "../../com.lkqcorp.rebuilders.qc.apk";
                Settings.AppContext = ConfigureApp
                                      .Android
                                      .EnableLocalScreenshots()
                                      .ApkFile(path)
                                      .StartApp(AppDataMode.DoNotClear);

                homeScreen    = new HomeScreen(Settings.AppContext);
                searchResults = new SearchResultsScreen(Settings.AppContext);
                settings      = new SettingsScreen(Settings.AppContext);
                drawer        = new Drawer(Settings.AppContext);

                _savedSearchesScreen = new SavedSearchesScreen(Settings.AppContext);
                _pickerDialog        = new PickerDialog(Settings.AppContext);

                if (homeScreen.IsLocationSet() == false)
                {
                    homeScreen.SelectLocation("LKQ London");
                }
            }
        }