Ejemplo n.º 1
0
 public void GivenWhenINavigateToAOHomepage()
 {
     SearchProductHmPage AOSearchProdhmPage = new SearchProductHmPage();
     // driver = new ChromeDriver();
     // driver.Navigate().GoToUrl("https://ao.com/");
     //driver.Manage().Window.Maximize();
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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();
        }
Ejemplo n.º 6
0
        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();
        }