Beispiel #1
0
        public void GerenciarLook(Look_Dao objDados, IWebDriver driver)
        {
            StackFrame sf     = new StackFrame();
            var        method = sf.GetMethod().Name;

            switch (objDados.Operacao)
            {
            case "C":
                //Consulta look
                ConsultaLook(driver, objDados);
                break;

            case "I":
                //Inserir novo look
                Look_Map.BtnSearchInserir(driver);
                PreencherLook(driver, objDados);
                break;

            case "U":
                //Atualizar look existente
                ConsultaLook(driver, objDados);
                Look_Map.CkbSearchItem(driver).Click();
                Look_Map.BtnSearchEditarItem(driver).Click();
                PreencherLook(driver, objDados);
                break;

            case "D":
                //Excluir look existente
                ConsultaLook(driver, objDados);
                Look_Map.CkbSearchItem(driver).Click();
                Look_Map.BtnSearchExcluirItem(driver).Click();
                ExcluirLook(driver);
                break;

            case "X":
                //Importar look
                ImportarLook(driver);
                break;
            }
        }