public void TC011_Add_Location_Search_Close_Button_Clean_Search_Text_Field_And_Suggestion_List(string location)
        {
            if (stepMenuOptions.verify_menu_displayed() == false)
            {
                Assert.That(stepMenuOptions.click_menu_button_by_class(), Is.True, "Menu Button is not found");
            }


            Assert.That(stepMenuOptions.click_add_location_button_by_id(), Is.True, "Add Location button is not found");
            string text_before_search = stepAddLocation.get_element_add_ocation_screen_text_element_by_id("searchtextfield");

            Assert.That(stepAddLocation.fill_up_serch_text_field(location), Is.True, "The text field cannot be found");
            Assert.That(stepAddLocation.click_close_search_button_by_id(), Is.True, "Search close button is not displayed");
            Assert.That(stepAddLocation.get_element_add_ocation_screen_text_element_by_id("searchtextfield"), Is.EqualTo(text_before_search), "Text field is not correctly cleaned");
        }
Exemple #2
0
 public void TC007_Menu_Add_Location_Screen_Open_with_CorrectContent_User_touch_Add_Location_Menu_Option(string element, string expectedText)
 {
     if (stepMenuOptions.verify_menu_displayed() == false)
     {
         Assert.That(stepMenuOptions.click_menu_button_by_class(), Is.True, "Menu Button is not found");
     }
     Assert.That(stepMenuOptions.click_add_location_button_by_id(), Is.True, "Add Location button cannot be found");
     Assert.That(stepAddLocation.verify_element_displayed_add_location_screen_by_id(element), Is.True, element + " is not displayed in the add screen");
     Assert.That(stepAddLocation.get_element_add_ocation_screen_text_element_by_id(element), Is.EqualTo(expectedText), element + " is displayed with the incorrect text");
 }