public void consultarTextoPadrao() { TextoPadraoPage textoPadrao = new TextoPadraoPage(driver); textoPadrao.consultarTextoPadrao("teste"); string textoValidacao = driver.FindElement(By.XPath("//*[@id='tableTipoTextoPadrao']/tbody/tr[1]/td[2]")).Text; Assert.IsTrue(textoValidacao.Contains("TESTE")); }
public void excluirTextoPadrao() { TextoPadraoPage textoPadrao = new TextoPadraoPage(driver); textoPadrao.excluirTextoPadrao(); string textoValidacao = driver.FindElement(By.XPath("//*[@id='divAlerta']/div")).Text; Assert.AreEqual(" Excluído com sucesso.", textoValidacao); }
public void incluirTextoPadrao() { TextoPadraoPage textoPadrao = new TextoPadraoPage(driver); textoPadrao.incluirTextoPadrao("testeSelenium", "BRO", "teste dpriaxção"); string textoValidacao = driver.FindElement(By.XPath("//*[@id='divAlerta']/div")).Text; Assert.AreEqual(" Cadastrado com sucesso.", textoValidacao); }
public void alterarTextoPadrao() { //verificar TextoPadraoPage textoPadrao = new TextoPadraoPage(driver); textoPadrao.alterarTextoPadrao("alt"); string textoValidacao = driver.FindElement(By.XPath("//*[@id='divAlerta']/div")).Text; Assert.AreEqual(" Alterado com sucesso.", textoValidacao); }