Exemplo n.º 1
0
 public void TC005_Menu_Button_Open_Menu_With_Correct_Content(string element, string expectedText)
 {
     if (stepMenuOptions.verify_menu_displayed() == true)
     {
         stepMenuOptions.click_back_android_button();
     }
     // driver.FindElementById("com.accuweather.android:id/tool_bar").FindElement(By.ClassName("android.widget.ImageButton")).Click();
     Assert.That(stepMenuOptions.click_menu_button_by_class(), Is.True, "Menu button is not found");
     Assert.That(stepMenuOptions.verify_element_displayed_menu_by_id(element), Is.True, element + " is not displayed in the menu");
     Assert.That(stepMenuOptions.get_element_text_menu_by_id(element), Is.EqualTo(expectedText), element + " is displayed with the incorrect text");
 }