如何运行watij
sole
2008-05-29
Note: You can also [Get the Latest Source] and build it yourself
Note: The best examples are in the Unit Tests - just look in the folder /watij_X_x.x/src/java-test/watij import junit.framework.TestCase; import static watij.finders.SymbolFactory.*; public class GoogleTest extends TestCase { public void testGoogleSearch() throws Exception { IE ie = new IE(); ie.start("http://www.google.com"); ie.textField(name,"q").set("XWiki"); ie.button("Google Search").click(); assertTrue(ie.containsText("/Java wiki engine/")); } }
Using BeanShell
|