Example #1
0
        public void priceListTest()
        {
            //instantiate the driver
            IWebDriver driver = new ChromeDriver();

            //call the website
            driver.Url = Constant.drWebUrl;

            driver.Manage().Window.Maximize();

            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);

            //call Login page to begin login application
            Login_Page login_Page = new Login_Page(driver);

            login_Page.LoginApplication();
            log.Info("login Complete");

            //call the create category application
            PriceList_Page priceList_Page = new PriceList_Page(driver);

            priceList_Page.CreateCategoryApplication();
            log.Info("Create Category Complete");

            //call the cteate new price list code
            priceList_Page.CreatePriceListApplication();
            log.Info("create PriceList Code Complete");

            driver.Quit();
        }