Beispiel #1
0
        public void Test7_addItemToCart()
        {
            string searchInput   = "software testing";
            string expectedTitle = "Shopping Cart";

            _homePage.GoToHomepage();
            _homePage.InputSearchText(searchInput);
            _homePage.PressSearch();

            _searchResultsPage.AddToCartFirstProduct();

            string actualResult = _shoppingCartPage.GetPageTitle();

            Assert.That(expectedTitle == actualResult);
        }