Commit c41f26e3dc9914d4942ada5e842b05b2cf595d03

Authored by EdmilsonSantana
1 parent 09ca5b96

Manutenção de testes de Perfil Quadra.

src/test/java/br/com/ggas/selenium/TesteLocalizacao.java
1 1  
2 2 package br.com.ggas.selenium;
3 3  
  4 +import static org.junit.Assert.assertEquals;
  5 +import static org.junit.Assert.assertTrue;
  6 +
4 7 import org.junit.Test;
5 8 import org.openqa.selenium.By;
6 9 import org.openqa.selenium.JavascriptExecutor;
7 10 import org.openqa.selenium.WebElement;
8 11 import org.openqa.selenium.support.ui.Select;
9 12  
10   -import static org.junit.Assert.assertEquals;
11   -import static org.junit.Assert.assertTrue;
12   -
13 13 public class TesteLocalizacao extends SeleniumTestCase {
14 14  
15 15 @Test
... ... @@ -283,8 +283,12 @@ public class TesteLocalizacao extends SeleniumTestCase {
283 283  
284 284 clicarEmElemento(isClickable(By.id("checkboxChavesPrimarias")));
285 285 clicarEmElemento(isClickable(By.id("botaoAlterar")));
  286 +
  287 + espera();
  288 +
286 289 waitForElement(By.id("descricao")).clear();
287 290 waitForElement(By.id("descricao")).sendKeys("Perfil Testet");
  291 +
288 292 clicarEmElemento(isClickable(By.id("botaoSalvar")));
289 293  
290 294 obterElementoVisivel(By.xpath("//h1[contains(text(), 'Pesquisar Perfil de Quadra')]"));
... ...