public void GivenUserNavigatingToLogInPage()
        {
            HeaderObjects page = new HeaderObjects(_driver);

            page.Login();
            //driver.FindElement(By.CssSelector(".btnSignIn")).Click();
        }
        public void GivenUserTypingToSearchbar(string productname)
        {
            HeaderObjects page = new HeaderObjects(_driver);

            page.Search(productname);
            //driver.FindElement(By.CssSelector("#searchData")).SendKeys(productname);
        }
        public void WhenClickingToTheSearchButtonİnOrderToSearchForThatProduct()
        {
            HeaderObjects page = new HeaderObjects(_driver);

            page.SubmitSearch();
            //driver.FindElement(By.CssSelector(".searchBtn")).Click();
        }
        public void WhenUserNavigateTo(string sitedaddress)
        {
            HeaderObjects page = new HeaderObjects(_driver);

            page.Navigate(sitedaddress);
            //driver.Url = sitedaddress;
        }
        public void ThenUserShouldBeVisibleUnderMyAccountSection(string fullname)
        {
            HeaderObjects page = new HeaderObjects(_driver);

            page.ConfirmUser(fullname);
            //string username = driver.FindElement(By.CssSelector(".menuLink.user")).Text;
            //Assert.AreEqual(username, fullname);
        }
        public void ThenPageTitleAndLandedUrlShouldAnd(string pagetitle, string siteurl)
        {
            HeaderObjects page = new HeaderObjects(_driver);

            page.ConfirmPage(siteurl, pagetitle);
            //Assert.AreEqual(driver.Title, pagetitle);
            //Assert.AreEqual(driver.Url, siteurl);
        }
Пример #7
0
        public void WhenUserNavigatingToTheirFavoritesList()
        {
            HeaderObjects page = new HeaderObjects(_driver);

            page.Wishlist();
            WishlistPageObjects whPage = new WishlistPageObjects(_driver);

            whPage.FavoritesList();
        }
        public void WhenUserNavigatingToTheirFavoritesList()
        {
            HeaderObjects page = new HeaderObjects(_driver);

            page.Wishlist();
            WishlistPageObjects whPage = new WishlistPageObjects(_driver);

            whPage.FavoritesList();

            //Actions action = new Actions(driver);
            //IWebElement we = (driver.FindElement(By.CssSelector(".myAccountHolder")));
            //action.MoveToElement(we).Perform();
            //var a = driver.FindElements(By.CssSelector(".hOpenMenuContent a"));
            //a[1].Click();
            //driver.FindElement(By.CssSelector("ul .listItemProductList li a")).Click();
        }
Пример #9
0
        public void GivenUserTypingToSearchbar(string productname)
        {
            HeaderObjects page = new HeaderObjects(_driver);

            page.Search(productname);
        }
Пример #10
0
        public void GivenUserNavigatingToLogInPage()
        {
            HeaderObjects page = new HeaderObjects(_driver);

            page.Login();
        }
Пример #11
0
        public void ThenUserShouldBeVisibleUnderMyAccountSection(string fullname)
        {
            HeaderObjects page = new HeaderObjects(_driver);

            page.ConfirmUser(fullname);
        }
Пример #12
0
        public void WhenClickingToTheSearchButtonİnOrderToSearchForThatProduct()
        {
            HeaderObjects page = new HeaderObjects(_driver);

            page.SubmitSearch();
        }