Example #1
0
        public void B_CriarCateg()
        {
            Thread.Sleep(TimeSpan.FromSeconds(5));
            PageObjects PagObj = new PageObjects(_driver);
            ExcelUtil   util   = new ExcelUtil();

            util.PopulateInCollection(filePathCat);
            for (int r = 1; r <= 5; r++)
            {
                PagObj.AcessarManager();
                PagObj.AcessarProj();
                PagObj.CriarCateg(util.ReadData(r, "Column0"));
                PagObj.AcessarCateg(util.ReadData(r, "Column0"));
                PagObj.Screenshot("CriarCateg");
                PagObj.AcessarProj();
                PagObj.ScreenshotTabCat("ValidElement", util.ReadData(r, "Column0"));
            }
        }
Example #2
0
        public void C_AlterarCat()
        {
            Thread.Sleep(TimeSpan.FromSeconds(5));
            PageObjects PagObj = new PageObjects(_driver);
            ExcelUtil   util   = new ExcelUtil();

            util.PopulateInCollection(filePathCat);
            for (int r = 1; r <= 5; r++)
            {
                PagObj.AcessarManager();
                PagObj.AcessarProj();
                PagObj.AcessarCateg(util.ReadData(r, "Column0"));
                PagObj.AltCategNome(util.ReadData(r, "Column1"));
                PagObj.AltAtribCateg(util.ReadData(r, "Column2"));
                //Obj public
                PagObj.UpdtCat.Submit();
                PagObj.Screenshot("ConfirmAltCat");
                //ScreenShot para determinado elemento da tabela Categorias
                PagObj.ScreenshotTabCat("ValidAltElement", util.ReadData(r, "Column1"));
            }
        }