public void NavigatingThroughMenus() { helper.NavigateTo("https://modpizza.com/"); //Pizza Menu menu.MenuCategoryySelect(); helper.AssertByElementText("INDIVIDUAL, ARTISAN-STYLE PIZZAS, SALADS AND MORE", menu.MenuParagrahp); menu.Pizzas.Click(); helper.AssertByElementText("GET A MOD 11-INCH CLASSIC OR CREATE YOUR OWN", menu.PizzaParagraph); menu.PizzaIngredients.Click(); helper.AssertByElementText("TOPPINGS", menu.TopicsTitle); //Salad Menu menu.MenuCategoryySelect(); helper.AssertByElementText("INDIVIDUAL, ARTISAN-STYLE PIZZAS, SALADS AND MORE", menu.MenuParagrahp); menu.Salads.Click(); helper.AssertByElementText("GET A CLASSIC OR CREATE YOUR OWN", menu.SaladsParagraph); menu.SaladsIngredients.Click(); helper.AssertByElementText("TOPPINGS", menu.TopicsTitle); //Sides Menu menu.MenuCategoryySelect(); helper.AssertByElementText("INDIVIDUAL, ARTISAN-STYLE PIZZAS, SALADS AND MORE", menu.MenuParagrahp); menu.Sides.Click(); helper.AssertByElementText("SIDES & GOOD STUFF", menu.SidesTitle); //Beverages menu.MenuCategoryySelect(); helper.AssertByElementText("INDIVIDUAL, ARTISAN-STYLE PIZZAS, SALADS AND MORE", menu.MenuParagrahp); menu.Beverages.Click(); helper.AssertByElementText("FOUNTAIN DRINKS", menu.BeveragesParagraph); }
public void ChangeSiteBasicSettings() { //Enter Site Name and Description wpHome.NameYoursiteText.Click(); wpHome.NameYoursiteButton.Click(); Assert.AreEqual(true, wpSettings.SettingsTitle.Displayed); wpSettings.SiteNameAndDescription("Site1", "This is a site"); wpSettings.SelectLanguageFAux("Africa and Middle East", "Afrikaans"); helper.AssertByElementText("Afrikaans", wpSettings.LanguagePickButton); //Configure Time Zone helper.ScrollToElement(wpSettings.TimeZone); wpSettings.SelectTimeZone("Bucharest"); wpSettings.SaveSettingsButton.Click(); //Check if new configured settings are reflected on the WebPage helper.ScrollToElement(wpHome.MyHome); wpHome.MyHome.Click(); wpHome.VisiSiteButton.Click(); helper.WaitElement(wpWeb.SiteTitle); helper.AssertByElementText("Site1", wpWeb.SiteTitle); helper.WaitElement(wpWeb.SiteDescription); helper.AssertByElementText("This is a site", wpWeb.SiteDescription); }
public void CheckingStatuses() { helper.NavigateTo("https://modpizza.com/"); //Reaching Locations Page locationsPage.LocationsCategorySelect(); helper.AssertByElementText("LOCATIONS", locationsPage.LocationsTitle); //Selecting and Asserting All Statuses locationsPage.CheckBoxStatusAllSelect(); Assert.AreEqual(true, locationsPage.CheckBoxStatusAll.Selected); //Selecting and Asserting Open Statuses locationsPage.CheckboxStatusOpenSelect(); Assert.AreEqual(true, locationsPage.CheckboxStatusOpen.Selected); //Selecting and Asserting Coming Soon Statuses locationsPage.CheckboxStatusOpenComingSelect(); Assert.AreEqual(true, locationsPage.CheckboxStatusComing.Selected); }