01: package watij;
02:
03: import static watij.finders.SymbolFactory.id;
04:
05: public class BehaviorsTest extends WatijTestCase {
06:
07: protected void setUp() throws Exception {
08: super .setUp();
09: ie.goTo(HTML_ROOT + "testBehaviors.html");
10: }
11:
12: public void testShow() throws Exception {
13: ie.show();
14: }
15:
16: public void testText() throws Exception {
17: String text = ie.htmlElement(id, "customID").text().trim();
18: assertEquals(
19: "Read Doc JavaScript's columns, tips, tools, and tutorials",
20: text);
21: }
22: }
|