Beispiel #1
0
        public PackagesMenu Packages()
        {
            driver.Manage().Timeouts().PageLoad     = TimeSpan.FromSeconds(30);
            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30);
            packages.Click();

            PackagesMenu pm = new PackagesMenu(driver);

            PageFactory.InitElements(driver, pm);
            return(pm);
        }
Beispiel #2
0
        public void login()
        {
            test = extent.StartTest(testcaseName);

            setup("chrome");
            LaunchingPage lp = new LaunchingPage(driver, test);

            PageFactory.InitElements(driver, lp);
            LandingPage lpage1 = lp.openApplication();

            PageFactory.InitElements(driver, lpage1);
            HomePage hp1 = lpage1.SignIn();

            PageFactory.InitElements(driver, hp1);
            PackagesMenu pm = hp1.Packages();

            PageFactory.InitElements(driver, pm);
            pm.goldmembership();
            test.Log(LogStatus.Pass, "goldmembership page open");

            // driver.Quit();
        }