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); }
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(); }
public void GivenUserTypingToSearchbar(string productname) { HeaderObjects page = new HeaderObjects(_driver); page.Search(productname); }
public void GivenUserNavigatingToLogInPage() { HeaderObjects page = new HeaderObjects(_driver); page.Login(); }
public void ThenUserShouldBeVisibleUnderMyAccountSection(string fullname) { HeaderObjects page = new HeaderObjects(_driver); page.ConfirmUser(fullname); }
public void WhenClickingToTheSearchButtonİnOrderToSearchForThatProduct() { HeaderObjects page = new HeaderObjects(_driver); page.SubmitSearch(); }