1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| package test;
import com.thoughtworks.selenium.SeleneseTestCase;
public class Bar extends SeleneseTestCase {
public void setUp() throws Exception {
setUp("http://www.google.fr/", "*chrome");
}
public void testTestttt() throws Exception {
selenium.open("/");
selenium.type("q", "clever age");
selenium.click("btnG");
Thread.sleep(5000);
selenium.click("link=Clever Age, digital architecture");
Thread.sleep(5000);
assertEquals("Clever Age, digital architecture", selenium.getTitle());
}
} |
Partager