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")); }
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); }
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")); }
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); }