Created
September 3, 2011 15:33
-
-
Save ondrejmirtes/1191353 to your computer and use it in GitHub Desktop.
Selenium 2.0
This file contains 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 fm; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebDriver; | |
import static org.junit.Assert.*; | |
public class HomepageTest { | |
@Test | |
public void testTitle(WebDriver driver) { | |
driver.get("http://localhost/"); | |
assertEquals("Foo", driver.getTitle()); | |
} | |
@Test | |
public void testSearchForm(WebDriver driver) { | |
//... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment