string list_location_temp_id; // = "com.accuweather.android:id/current_temp"; public StepsToMenuOptions(AppiumDriver <IWebElement> driver) { this.driver = driver; read_data = new ReadCsvs(); Dictionary <string, Dictionary <string, string> > screenComponents = read_data.read_android_components("menuOptionsScreen"); this.menu_pane_id = screenComponents["ids"]["menuPane"]; this.menu_button_xpath = screenComponents["xpaths"]["menuButton"]; this.menu_options_list_id = screenComponents["ids"]["menuOptionsList"]; this.menu_options_edit_icon_id = screenComponents["ids"]["editIcon"]; this.menu_options_edit_label_id = screenComponents["ids"]["editLabel"]; this.menu_options_add_icon_id = screenComponents["ids"]["addIcon"]; this.menu_options_add_label_id = screenComponents["ids"]["addLabel"]; this.list_location_id = screenComponents["ids"]["location"]; this.list_selection_bar_id = screenComponents["ids"]["selectionBar"]; this.tool_bar_id = screenComponents["ids"]["toolBar"]; this.menu_button_class = screenComponents["classes"]["menuButton"]; this.list_location_name_id = screenComponents["ids"]["locationName"]; this.list_location_whether_icon_id = screenComponents["ids"]["locationWhetherIcon"]; this.list_location_temp_id = screenComponents["ids"]["locationTemp"]; }
string element_searched_location_country_id; // = "com.accuweather.android:id/location_search_country"; public StepsToAddLocation(AppiumDriver <IWebElement> driver) { this.driver = driver; read_data = new ReadCsvs(); Dictionary <string, Dictionary <string, string> > screenComponents = read_data.read_android_components("addLocationScreen"); this.add_location_screen_id = screenComponents["ids"]["addLocationScreen"]; this.button_back_id = screenComponents["ids"]["backButton"]; this.button_search_id = screenComponents["ids"]["searchButton"]; this.text_field_search_id = screenComponents["ids"]["searchTextField"]; this.search_list_id = screenComponents["ids"]["searchList"]; this.button_close_id = screenComponents["ids"]["closeButton"]; this.element_searched_path = screenComponents["xpaths"]["elementSearched"]; this.element_searched_class = screenComponents["classes"]["elementSearched"]; this.element_searched_location_name_id = screenComponents["ids"]["elementSearchedName"]; this.element_searched_location_country_id = screenComponents["ids"]["elementSearchedCountry"]; }
public StepsToTermsAndConditions(AppiumDriver <IWebElement> driver) { this.driver = driver; read_data = new ReadCsvs(); Dictionary <string, Dictionary <string, string> > screenComponents = read_data.read_android_components("termAndConditionsScreen"); this.title_id_term = screenComponents["ids"]["titleTermAndConditions"]; this.message_id_term = screenComponents["ids"]["messageTermAndConditions"]; this.agree_id_term = screenComponents["ids"]["agreeButtonTermAndConditions"]; this.disagree_id_term = screenComponents["ids"]["rejectButtonTermAndConditions"]; this.title_id_well = screenComponents["ids"]["titleWellcome"]; this.message_id_well = screenComponents["ids"]["messageWellcome"]; this.go_id_well = screenComponents["ids"]["gobuttonWellcome"]; this.element_menu = screenComponents["ids"]["menuLocationList"]; this.allow_localization_id = screenComponents["ids"]["allowButtonLocalizationPermission"]; }
string location_class; // = "android.widget.RelativeLayout"; public StepsToEditLocation(AppiumDriver <IWebElement> driver) { this.driver = driver; read_data = new ReadCsvs(); Dictionary <string, Dictionary <string, string> > screenComponents = read_data.read_android_components("editLocationScreen"); this.tool_bar_edit_id = screenComponents["ids"]["toolBarEdit"]; this.button_back_tool_bar_class = screenComponents["classes"]["backButton"]; this.label_title_tool_bar_class = screenComponents["classes"]["titleLabelToolBar"]; this.button_back_tool_bar_xpath = screenComponents["xpaths"]["backButton"]; this.label_title_tool_bar_xpath = screenComponents["xpaths"]["titleLabelToolBar"]; this.label_title_id = screenComponents["ids"]["titlelabelLocationToEdit"]; this.label_subtitle_id = screenComponents["ids"]["subtitlelabelLocationToEdit"]; this.button_toogle_id = screenComponents["ids"]["toogleButtonLocationToEdit"]; this.edit_list_id = screenComponents["ids"]["editListLocations"]; this.location_class = screenComponents["classes"]["locationToEdit"]; }