public void ThenTheMovieIsRemovedFromHisWishlist(string movieTitle)
        {
            var wishlistPage = new WishlistPage(driver);

            wishlistPage.WishlistBtn.Click();
            Assert.That(driver.PageSource.Contains(movieTitle), Is.False);
        }
        public void GivenTheUserNavigatesToTheWishlistPage()
        {
            var homePage     = new HomePage(driver);
            var wishlistPage = new WishlistPage(driver);

            homePage.WishlistBtn.Click();
            Assert.That(wishlistPage.PageTitle.Text.Contains("WishList"), Is.True);
        }
Esempio n. 3
0
 public WishlistWF(IWebDriver WebDriver)
 {
     this.WebDriver    = WebDriver;
     this.WishlistPage = new WishlistPage(WebDriver);
 }
        public void WhenClicksTheRemoveFromWishlistButton()
        {
            var wishlistPage = new WishlistPage(driver);

            wishlistPage.RemoveFromWishlistBtn.Click();
        }