1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.common;
17
18 import org.junit.Test;
19
20
21
22
23
24 public abstract class MainMenuLookupITBase extends MenuITBase {
25 @Override
26 protected String getCreateNewLinkLocator() {
27 return "link=Create New";
28 }
29
30 @Override
31 protected String getMenuLinkLocator() {
32 return "link=Main Menu";
33 }
34
35
36
37
38 public abstract void lookupAssertions();
39
40 @Test
41 public void testLookUp() throws Exception {
42 waitAndClick(getLinkLocator());
43 waitForPageToLoad();
44 selectFrame("iframeportlet");
45 waitAndClick("//button[contains(.,'earch')]");
46 waitAndClick("link=edit");
47 checkForIncidentReport("submit");
48 assertTextPresent("ubmit");
49 assertTextPresent("ave");
50 assertTextPresent("pprove");
51 assertTextPresent("lose");
52 assertTextPresent("ancel");
53 lookupAssertions();
54 waitAndClick("//a[contains(., 'ancel')]");
55 }
56 }