コード例 #1
0
        public void OpenAllElementsInChrome()
        {
            ////general = new GeneralPage();
            AdminLoginPage   adminLoginPage   = new AdminLoginPage(driver, wait);
            AdminMyStorePage adminMyStorePage = new AdminMyStorePage(driver, wait);

            //general.GoToPage(driver, "http://localhost/litecart/admin/", wait, "My Store");
            adminLoginPage.Open();
            adminLoginPage.Login("admin", "admin");
            adminMyStorePage.OpenAllElements();
        }
コード例 #2
0
        public void VerifySortingTimezonesInChrome()
        {
            //general = new GeneralPage();
            AdminLoginPage    adminLoginPage    = new AdminLoginPage(driver, wait);
            AdminGeoZonesPage adminGeoZonesPage = new AdminGeoZonesPage();

            //general.GoToPage(driver, "http://localhost/litecart/admin/", wait, "My Store");
            adminLoginPage.Open();
            adminLoginPage.Login("admin", "admin");
            //general.GoToPage(driver, "http://localhost/litecart/admin/?app=geo_zones&doc=geo_zones", wait, "Geo Zones");
            adminGeoZonesPage.GoToEachCountryAndVerifySortingTimeZones(driver, wait);
        }
コード例 #3
0
        public void OpenNewWindowsByClickOnLinkInChrome()
        {
            AdminLoginPage         adminLoginPage         = new AdminLoginPage(driver, wait);
            AdminCountiresPage     adminCoutriesPage      = new AdminCountiresPage();
            AdminAddNewCountryPage adminAddNewCountryPage = new AdminAddNewCountryPage();

            adminLoginPage.Open();
            adminLoginPage.Login("admin", "admin");
            adminCoutriesPage.Open(driver, wait);
            adminCoutriesPage.AddNewCountry(driver, wait);
            adminAddNewCountryPage.ClickAllExternalLinks(driver, wait);
        }
コード例 #4
0
        public void VerifySortingCountriesInChrome()
        {
            //general = new GeneralPage();
            AdminLoginPage     adminLoginPage     = new AdminLoginPage(driver, wait);
            AdminCountiresPage adminCountriesPage = new AdminCountiresPage();

            //general.GoToPage(driver, "http://localhost/litecart/admin/", wait, "My Store");
            adminLoginPage.Open();
            adminLoginPage.Login("admin", "admin");
            adminCountriesPage.Open(driver, wait);
            //general.GoToPage(driver, "http://localhost/litecart/admin/?app=countries&doc=countries", wait, "Countries");
            adminCountriesPage.VerifySortingCountries(driver, wait);
        }
コード例 #5
0
        public void VerifyLogsInChrome()
        {
            AdminLoginPage   adminLoginPage   = new AdminLoginPage(driver, wait);
            AdminCatalogPage adminCatalogPage = new AdminCatalogPage(driver, wait);
            AdminOrdersPage  adminOrdersPage  = new AdminOrdersPage();

            adminLoginPage.Open();
            adminLoginPage.Login("admin", "admin");
            adminCatalogPage.Open(driver, wait);
            adminCatalogPage.OpenEachProduct();
            adminOrdersPage.Open(driver, wait);
            adminOrdersPage.CreateNewOrder(driver, wait);
        }
コード例 #6
0
        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");
        }
コード例 #7
0
        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();
        }
コード例 #8
0
ファイル: LoginFacade.cs プロジェクト: 501NotImplemented/Demo
 public void LoginAsAdmin()
 {
     _adminLoginPage.Open();
     _adminLoginPage.Login(Configuration.PhpTravels.Settings.AdminUserName, Configuration.PhpTravels.Settings.AdminPassword);
     _dashboardPage.WaitToBeOpened();
 }