Esempio n. 1
0
 public static void Login(SeleniunHelper browser)
 {
     browser.ClicarLinkPorTexto("Entrar");
     browser.PreencherTextBoxPorId("email", ConfigurationHelper.TestUserName);
     browser.PreencherTextBoxPorId("senha", ConfigurationHelper.TestPassword);
     browser.ClicarBotaoPorId("Login");
 }
 public void DadoPreencheOsCamposComOsValores(Table table)
 {
     // Estou preenchendo os valores para registrar um novo Organizador
     Browser.PreencherTextBoxPorId(table.Rows[0][0], table.Rows[0][1]);
     Browser.PreencherTextBoxPorId(table.Rows[1][0], table.Rows[1][1]);
     Browser.PreencherTextBoxPorId(table.Rows[2][0], table.Rows[2][1]);
     Browser.PreencherTextBoxPorId(table.Rows[3][0], table.Rows[3][1]);
     Browser.PreencherTextBoxPorId(table.Rows[4][0], table.Rows[4][1]);
 }
Esempio n. 3
0
        public void DadoPreencheOFormularioComOsValores(Table table)
        {
            string dataInicio = table.Rows[4][1];
            string dataFim    = table.Rows[5][1];

            Browser.PreencherTextBoxPorId(table.Rows[0][0], table.Rows[0][1]);
            Browser.PreencherTextBoxPorId(table.Rows[1][0], table.Rows[1][1]);
            Browser.PreencherTextBoxPorId(table.Rows[2][0], table.Rows[2][1]);
            Thread.Sleep(500);
            Browser.PreencherCampoDropDown(table.Rows[3][0], table.Rows[3][1]);

            Browser.PreencherCampoData(table.Rows[4][0], dataInicio);
            Browser.PreencherCampoData(table.Rows[5][0], dataFim);

            Browser.PreencherTextBoxPorId(table.Rows[6][0], table.Rows[6][1]);
            Browser.PreencherTextBoxPorId(table.Rows[7][0], table.Rows[7][1]);
            Browser.PreencherTextBoxPorId(table.Rows[8][0], table.Rows[8][1]);
            Browser.PreencherTextBoxPorId(table.Rows[9][0], table.Rows[9][1]);
            Browser.PreencherTextBoxPorId(table.Rows[10][0], table.Rows[10][1]);
            Browser.PreencherTextBoxPorId(table.Rows[11][0], table.Rows[11][1]);
            Browser.PreencherTextBoxPorId(table.Rows[12][0], table.Rows[12][1]);
            Browser.PreencherTextBoxPorId(table.Rows[13][0], table.Rows[13][1]);
            Browser.PreencherTextBoxPorId(table.Rows[14][0], table.Rows[14][1]);
            Browser.PreencherTextBoxPorId(table.Rows[15][0], table.Rows[15][1]);
            Browser.PreencherCampoDropDown(table.Rows[16][0], table.Rows[16][1]);
        }