public void SetUp() { Initialize(); _registrationFormPage = new RegistrationFormPage(Driver); _registrationFormPage.NavigateTo(); _user = RegistrationFormFactory.CreateUser(); }
public void SetUp() { Initialize(); Driver.GoToUrl("https://demoqa.com/"); _registrationPage = new RegistrationFormPage(Driver); _registrationModel = RegistrationFormFactori.FillForm(); }
//[Ignore("")] public void US4ScenarioCorrectInfo() { var index = new IndexPage(driver); var signIn = new SignInPage(driver); var register = new RegistrationFormPage(driver); var myAccount = new MyAccountPage(driver); //from home click signin index.NavigateToSignIn(); //from signin register with email signIn.ClickRegister(); //go to form page and send keys for info //correct info/no error takes us to account page register.EnterCorrectInfo(); //arrived at my account page? Assert.IsTrue(myAccount.arrivedOnPage()); //assert my account page and name on top right corner Assert.IsTrue(myAccount.IsNamePresent()); myAccount.signOut(); }
public void US4ScenarioWrongInfo() { var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10)); string currUrl = driver.Url; if (currUrl != "http://automationpractice.com/index.php") { driver.Navigate().GoToUrl("http://automationpractice.com/index.php"); wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(By.XPath("//a[@class='login']"))); } var index = new IndexPage(driver); var signIn = new SignInPage(driver); var register = new RegistrationFormPage(driver); //from home click signin index.NavigateToSignIn(); //from signin register with email signIn.ClickRegister(); //go to form page and send keys for info register.EnterIncorrect(); //send wrong info to assert error message Assert.IsFalse(register.WasErrorAlertDisplayed()); }
public void SetUp() { Initialize(); Driver.Manage().Window.Maximize(); Driver.Navigate().GoToUrl(" http://automationpractice.com/index.php"); _registrationFormPage = new RegistrationFormPage(Driver); _user = UserFactory.CreateValidUser(); }
public void Setup() { Initialize(); _signInPage = new SignInPage(Driver); _signInPage.NavigateToMainPage(); _registrationFormPage = new RegistrationFormPage(Driver); _user = RegistrationFormModelFactory.Create(); PrerequisitesOfTests(); }
public void Setup() { Initialize(); Driver.Navigate().GoToUrl("http://automationpractice.com/index.php?controller=authentication&back=my-account"); _registrationFormPage = new RegistrationFormPage(Driver); _user = FormFactory.Create(); var fixture = new Fixture(); var mail = fixture.Create <string>() + "@gmail.com"; _registrationFormPage.EmailAddressField.SendKeys(mail); _registrationFormPage.CreateAccountButton.Click(); }
public void Setup() { Initialize(); Driver.Navigate().GoToUrl("http://automationpractice.com/index.php"); _registrationsFormPage = new RegistrationFormPage(Driver); }
public RegistrationFormSteps(IWebDriver driver) { _webdriver = driver; _webdriver.Url = _webdriver.Url + "rejestracja"; registrationFormPage = new RegistrationFormPage(_webdriver); }