예제 #1
0
        public void emptyCartInContactUsPage()
        {
            webdriver.Url = "http://awful-valentine.com/contact-us/";
            ContactUsPage page    = new ContactUsPage(webdriver);
            string        message = page.getPageSidebar()
                                    .getSidebarCart()
                                    .getSummaryOfEmptyCart();

            Assert.AreEqual("", message);
        }
        public void addProductToCart()
        {
            webdriver.Url = "http://awful-valentine.com/";

            HomePage homepage = new HomePage(webdriver);

            homepage.getItems().get(0).addToCart();

            webdriver.Url = "http://awful-valentine.com/contact-us/";
            ContactUsPage contactUsPage = new ContactUsPage(webdriver);

            Assert.AreEqual("You have 1 item ($5.77) in your shopping cart.",
                            contactUsPage.getPageSidebar().getSidebarCart().getSummary());
        }