public void AddProductInChrome() { AdminLoginPage adminLoginPage = new AdminLoginPage(driver, wait); AdminMyStorePage adminMyStorePage = new AdminMyStorePage(driver, wait); AdminCatalogPage adminCatalogPage = new AdminCatalogPage(driver, wait); AdminAddNewProductPage adminAddNewProductPage = new AdminAddNewProductPage(driver, wait); //general = new GeneralPage(); //general.GoToPage(driver, "http://localhost/litecart/admin", wait, "My Store"); adminLoginPage.Open(); adminLoginPage.Login("admin", "admin"); adminMyStorePage.GoToSection("Catalog"); adminCatalogPage.ClickAddNewProduct(); adminAddNewProductPage.CreateProduct("Test name", true, "test code1234", "Subcategory", "Subcategory", "Male", "12", "pcs", "3-5 days", "Temporary sold out", "D:\\Repository\\image.jpg", "01/01/2016", "02/02/2018", "ACME Corp.", "-- Select --", "test keyword1, test keyword2", "test short description", "test description line1\ntest description line2", "test head title", "test meta description", "13", "Euros", "-- Select --", "14.99", "15.88", "16.77", "17.66"); adminCatalogPage.VerifyProductExists("Test name"); }
public void RegisterUserInChrome() { AdminLoginPage adminLoginPage = new AdminLoginPage(driver, wait); AdminMyStorePage adminMyStorePage = new AdminMyStorePage(driver, wait); AdminUsersPage adminUsersPage = new AdminUsersPage(); AdminCreateNewUserPage adminCreateNewUserPage = new AdminCreateNewUserPage(); ////general = new GeneralPage(); User user = new User(); //general.GoToPage(driver, "http://localhost/litecart/admin", wait, "My Store"); adminLoginPage.Open(); adminLoginPage.Login("admin", "admin"); adminMyStorePage.GoToSection("Users"); adminUsersPage.ClickCreateNewUser(driver, wait); adminCreateNewUserPage.CreateUser(driver, wait, user, "user" + DateTime.Now.ToString("hhmmss"), "12345"); adminMyStorePage.Logout(); adminLoginPage.Login(user.username, user.password); adminMyStorePage.Logout(); }