コード例 #1
0
ファイル: Program.cs プロジェクト: Aleena10/project2020
        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);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: Aleena10/project2020
        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);
        }