예제 #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");
        }
예제 #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);
        }