예제 #1
0
        public void TestInitialize()
        {
            var driver = new FirefoxDriver(new FirefoxProfile());

            base.BaseTestInitialize(driver, BaseUrl, 30);
            this.loginPage       = new LoginPage(driver);
            this.profilePage     = new ProfilePage(driver);
            this.yourAccountPage = new YourAccountPage(driver);
        }
예제 #2
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");
        }
예제 #3
0
        public void TestInitialize()
        {
            this.profile = new FirefoxProfile();
            this.profile.SetPreference("javascript.enabled", false);
            var driver = new FirefoxDriver(profile);

            base.BaseTestInitialize(driver, BaseUrl, 20);
            this.loginPage       = new LoginPage(driver);
            this.profilePage     = new ProfilePage(driver);
            this.yourAccountPage = new YourAccountPage(driver);
        }
예제 #4
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);
        }
예제 #5
0
        public void YorAccountTest(string email, string passw)
        {
            MainPage        mainPage       = new MainPage(webdriver);
            LogInPage       authentication = mainPage.ClickOnSignIn();
            YourAccountPage yourAccount    = authentication.lognIn(email, passw);

            yourAccount.ClickInformationLink();
            webdriver.Navigate().Back();
            yourAccount.ClickAddAdressLink();
            webdriver.Navigate().Back();
            yourAccount.ClickOrderHistoryLink();
            webdriver.Navigate().Back();
            yourAccount.ClickCreditSlipsLink();
            webdriver.Navigate().Back();
            yourAccount.ClickPersonalDataLink();
            webdriver.Navigate().Back();
            yourAccount.ClickSignOutLink();
        }