1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package edu.samplu.mainmenu.test;
18
19 import org.junit.Test;
20 import org.openqa.selenium.By;
21
22 import edu.samplu.common.ITUtil;
23 import edu.samplu.common.WebDriverLegacyITBase;
24
25
26
27
28
29
30
31 public class AttributeDefinitionLookUpLegacyIT extends WebDriverLegacyITBase{
32 @Override
33 public String getTestUrl() {
34 return ITUtil.PORTAL;
35 }
36
37 @Test
38 public void testAttributeDefinitionLookUp() throws Exception {
39 waitAndClickByLinkText("Attribute Definition Lookup");
40 waitForPageToLoad();
41 selectFrame("iframeportlet");
42 waitAndClickByXpath("//button[contains(.,'earch')]");
43 Thread.sleep(3000);
44 waitForPageToLoad();
45 driver.findElement(By.tagName("body")).getText().contains("Actions");
46 waitAndClickByLinkText("1000");
47 waitForPageToLoad();
48
49 driver.findElement(By.tagName("body")).getText().contains("Attribute Inquiry");
50 driver.findElement(By.tagName("body")).getText().contains("KRMS Attributes");
51 driver.findElement(By.tagName("body")).getText().contains("Attribute Label");
52 driver.findElement(By.tagName("body")).getText().contains("1000");
53 driver.findElement(By.tagName("body")).getText().contains("peopleFlowId");
54 driver.findElement(By.tagName("body")).getText().contains("KR-RULE");
55 driver.findElement(By.tagName("body")).getText().contains("PeopleFlow");
56
57
58
59
60
61
62
63
64
65
66
67
68
69 passed();
70 }
71 }