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); }
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"); }
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); }
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); }
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(); }