Exemplo n.º 1
0
        public void YourAccountTest()
        {
            var yourAccountInstance = YourAccountPage.NavigateTo(base.Driver);
            var countAsAString1     = yourAccountInstance.PurchaseHistory.Text;
            var countAsAString2     = yourAccountInstance.YourDetails.Text;
            var countAsAString3     = yourAccountInstance.YourDownloads.Text;

            Assert.AreEqual(countAsAString1, "Purchase History");
            Assert.AreEqual(countAsAString2, "Your Details");
            Assert.AreEqual(countAsAString3, "Your Downloads");
        }
Exemplo n.º 2
0
        public void SearchProductBlackTest()
        {
            var yourAccountPage = YourAccountPage.NavigateTo(base.Driver);

            Thread.Sleep(6000);
            yourAccountPage.SearchTextBox.SendKeys("Black");
            Thread.Sleep(3000);

            var    searchProductPage = SearchProductBlackPage.NavigateTo(this.Driver);
            string text = searchProductPage.NameProduct.Text;

            Assert.IsTrue(text.Contains("Black"));
            Thread.Sleep(3000);
        }