Exemple #1
0
        public void EditTMTest()
        {
            HomePage home = new HomePage();

            //verify that username is //a[@href='#'][contains(.,'Hello hari!')]
            home.VerifyUsername(GlobalDriver.driver);
            //Click on Administration button
            home.ClickAdministration(GlobalDriver.driver);
            //Click on Time & Materials button
            home.ClickTimeMaterials(GlobalDriver.driver);

            TimeMaterialsPage tm = new TimeMaterialsPage();

            tm.EditTMRecord(GlobalDriver.driver);
        }
Exemple #2
0
        public void ClickCreateNewTest()
        {
            HomePage home = new HomePage();

            //verify that username is //a[@href='#'][contains(.,'Hello hari!')]
            home.VerifyUsername(GlobalDriver.driver);
            //Click on Administration button
            home.ClickAdministration(GlobalDriver.driver);
            //Click on Time & Materials button
            home.ClickTimeMaterials(GlobalDriver.driver);

            // click create new
            TimeMaterialsPage timeMaterial = new TimeMaterialsPage();

            timeMaterial.ClickCreateNew(GlobalDriver.driver);

            // enter valid information and click save
            timeMaterial.EnterValidDetails(GlobalDriver.driver);
        }