public void GivenWhenINavigateToAOHomepage() { SearchProductHmPage AOSearchProdhmPage = new SearchProductHmPage(); // driver = new ChromeDriver(); // driver.Navigate().GoToUrl("https://ao.com/"); //driver.Manage().Window.Maximize(); }
public void GivenIShouldClickOnSearchButton() { SearchProductHmPage AOSearchProdhmPage = new SearchProductHmPage(); AOSearchProdhmPage.Searchbtn(); //Thread.Sleep(5000); //driver.FindElement(By.XPath("/html[1]/body[1]/div[1]/div[1]/header[1]/div[1]/div[1]/div[1]/div[2]/div[3]/div[1]/div[1]/div[1]/div[2]/ul[2]/li[1]")).Click(); }
public void ThenIVerifyTheResultsAreSuccessfullyFilteredBasedOnYourSelectionCriteria() { SearchProductHmPage AOSearchProdhmPage = new SearchProductHmPage(); ListerPage FilterProductonListPage = new ListerPage(); Thread.Sleep(5000); FilterProductonListPage.SelectionResultBasedonCriteria("Hotpoint Washing Machines with 7 Kg, 8 Kg, 9 Kg wash load"); // Thread.Sleep(5000); // Assert.AreEqual("Hotpoint Washing Machines with 7 Kg, 8 Kg, 9 Kg wash load", driver.FindElement(By.XPath("/html[1]/body[1]/div[1]/div[1]/main[1]/div[2]/div[1]/div[2]/header[1]/h1[1]")).Text); }
public void GivenIEnterTheSearchKeywordInTheSearchTextBox(Table table) { SearchProductHmPage AOSearchProdhmPage = new SearchProductHmPage(); AOSearchProdhmPage.AOSearchInput(); //string searchText = table.Rows[0]["Keyword"].ToString(); // Thread.Sleep(5000); // driver.FindElement(By.XPath("//input[@id='siteSearch-input']")).SendKeys(searchText); }
public void ThenIFilterTheProductByIts(string p0) { SearchProductHmPage AOSearchProdhmPage = new SearchProductHmPage(); ListerPage FilterProductonListPage = new ListerPage(); Thread.Sleep(5000); FilterProductonListPage.Filterlist.Click(); // Thread.Sleep(5000); // driver.FindElement(By.XPath("//span[contains(text(),'Medium: 7-9kg')]")).Click(); }
public void ThenIShouldSelectABrandNameToNavigateToListerPage(string p0) { SearchProductHmPage AOSearchProdhmPage = new SearchProductHmPage(); Thread.Sleep(10000); AOSearchProdhmPage.ClickonBrand(); // Thread.Sleep(10000); // driver.FindElement(By.XPath("/html[1]/body[1]/div[1]/div[1]/header[1]/div[1]/div[1]/div[1]/div[2]/div[3]/div[1]/div[1]/div[1]/div[1]/div[1]/button[1]/span[1]")).Click(); }