Created
May 29, 2013 15:09
-
-
Save steppat/5671040 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.caelum.produtos.aceitacao; | |
import org.junit.Assert; | |
import org.junit.Test; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.firefox.FirefoxDriver; | |
public class PaginaIndexIT { | |
@Test | |
public void testAoGerarSemTituloUmaMensagemEhApresentada() { | |
WebDriver driver = new FirefoxDriver(); | |
//assumindo que o jetty roda no porta 9090 | |
driver.get("http://localhost:9090"); | |
WebElement html = driver.findElement(By.tagName("html")); | |
Assert.assertEquals(html.getText(),"Bem Vindo!"); | |
driver.close(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment