Beispiel #1
0
        public void vincularRespostaAPergunta()
        {
            RespostaPage resposta = new RespostaPage(driver);

            resposta.vincularResposta();

            string textoValidacao = driver.FindElement(By.XPath("//*[@id='divAlerta']/div/text()")).Text;

            Assert.IsTrue(textoValidacao.Contains("   Resposta vinculada com sucesso"));
        }
Beispiel #2
0
        public void excluirResposta()
        {
            RespostaPage resposta = new RespostaPage(driver);

            resposta.excluirResposta();

            string textoValidacao = driver.FindElement(By.XPath("//*[@id='divAlerta']/div")).Text;

            Assert.AreEqual("   Excluída com sucesso.", textoValidacao);
        }
Beispiel #3
0
        public void consultarResposta()
        {
            RespostaPage resposta = new RespostaPage(driver);

            resposta.consultarResposta("Sim");

            string textoValidacao = driver.FindElement(By.XPath("//*[@id='tableTipoResposta']/tbody/tr[1]/td[2]")).Text;

            Assert.IsTrue(textoValidacao.Contains("sim"));
        }
Beispiel #4
0
        public void alterarResposta()
        {
            RespostaPage resposta = new RespostaPage(driver);

            resposta.alterarResposta("teste selenium alteracao");

            string textoValidacao = driver.FindElement(By.XPath("//*[@id='divAlerta']/div")).Text;

            Assert.AreEqual("   Alterado com sucesso.", textoValidacao);
        }