public void TC016_chagne_to_metrics_system() { if (stepMenuOptions.verify_menu_displayed() == true) { Assert.That(stepMenuOptions.touch_outside_element_by_id(), Is.True, "Problems to touch outside of the Menu");//close menu option } Assert.That(stepMenuOptions.click_more_options(), Is.True, "More options button is not found"); Assert.That(stepMenuOptions.click_settings_option(), Is.True, "Settings button is not found"); Assert.That(stepMenuOptions.click_units_option(), Is.True, "Units option is not found"); Assert.That(stepMenuOptions.click_metric_option(), Is.True, "Metric option is not found"); stepMenuOptions.click_back_android_button(); stepMenuOptions.click_back_android_button(); Assert.AreEqual(" KM/H", stepMenuOptions.get_units_text()); }
public void TC006_Menu_Closed_When_User_Touch_Outside_menu() { if (stepMenuOptions.verify_menu_displayed() == false) { Assert.That(stepMenuOptions.click_menu_button_by_class(), Is.True, "Menu Button is not found"); } Assert.That(stepMenuOptions.touch_outside_element_by_id(), Is.True, "Problems to touch outside of the Menu"); Assert.That(stepMenuOptions.verify_menu_displayed(), Is.False, "Menu is not closed after touching outside of menu"); }