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 import org.openqa.selenium.By;
20
21
22
23
24
25 public abstract class MainMenuLookupLegacyITBase extends MenuLegacyITBase {
26 @Override
27 protected String getCreateNewLinkLocator() {
28 return "Create New";
29 }
30
31 @Override
32 protected String getMenuLinkLocator() {
33 return "Main Menu";
34 }
35
36
37
38
39 public abstract void lookupAssertions();
40
41 @Test
42 public void testLookUp() throws Exception {
43 waitAndClickByLinkText(getLinkLocator());
44 waitForPageToLoad();
45 selectFrame("iframeportlet");
46
47 waitAndClick(By.xpath("//button[contains(text(),'Search')]"));
48 waitAndClickByLinkText("edit", "edit button not present does user " + user + " have permission?");
49 checkForIncidentReport("submit");
50 assertTextPresent("ubmit");
51 assertTextPresent("ave");
52 assertTextPresent("pprove");
53 assertTextPresent("lose");
54 assertTextPresent("ancel");
55 lookupAssertions();
56 waitAndClick(By.xpath("//a[contains(text(), 'Cancel')]"));
57 passed();
58 }
59 }