public void ExecuteTest() { WebDriver.driver.Navigate().GoToUrl("http://automationpractice.com/index.php?controller=authentication&back=my-account"); WebDriver.driver.Manage().Window.Maximize(); Console.WriteLine("Opened URL"); LogInPageObject.LogIn("*****@*****.**", "LigaLegendi"); Console.WriteLine("Logged in the page!"); SearchPageObject.EnterProduct("shirt"); Console.WriteLine("Searched page for 'shirt'."); ShoppingPageObjects.SelectProduct(); Console.WriteLine("Going to product page."); ProductPageObjects.AddToCart(); Console.WriteLine("Product bought."); ShoppingCartPageObjects.AddQuantity("2"); Console.WriteLine("Two more shirts added to the cart. "); AddressPageObjects.AddComment("Your page is very good."); Console.WriteLine("Commented the page"); ShippingPageObjects.GoToPayment(); Console.WriteLine("Executed Test!"); }
public void SetUp() { this.driver = new ChromeDriver(@"C:\chromedriver_win32"); this.registeringPage = new RegisteringPageObject(this.driver); this.loginPage = new LogInPageObject(this.driver); this.mappingPage = new MappingPageObject(this.driver, navarraUrl); this.selectedHousePage = new SelectedHousePageObject(this.driver); this.registerFormInputs = new RegisterForm() { Name = "Alvaro", LastName = "Igartua Aizpiri", DNI = "79077256J", Birthday = "01-09-1996", Address = "C/Autonomía 54", City = "Bilbao", ZipCode = "48012", Country = "Spain", Phone = "622343875", Email = "*****@*****.**", UserName = userName, Password = password, VerifiedPassword = password }; this.loginFormInputs = new LoginForms() { UserName = userName, Password = password }; }