1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.demo.uif.library.general;
17
18 import org.junit.Test;
19
20 import org.kuali.rice.testtools.selenium.WebDriverLegacyITBase;
21
22
23
24
25 public class DemoGeneralFeaturesStickyFooterAft extends WebDriverLegacyITBase {
26
27
28
29
30 public static final String BOOKMARK_URL = "/kr-krad/kradsampleapp?viewId=Demo-StickyFooterView&methodToCall=start";
31
32 @Override
33 protected String getBookmarkUrl() {
34 return BOOKMARK_URL;
35 }
36
37 @Override
38 protected void navigate() throws Exception {
39 waitAndClickById("Demo-LibraryLink", "");
40 waitAndClickByLinkText("General Features");
41 waitAndClickByLinkText("Sticky Footer Options");
42 }
43
44 protected void testGeneralFeaturesExample1() throws Exception {
45 waitAndClickByLinkText("Sticky Application Footer");
46 waitAndClickByLinkText("Sticky application footer");
47 switchToWindow("Kuali :: View Header");
48 waitForElementPresentByXpath("//footer[@id='Uif-ApplicationFooter-Wrapper' and @data-sticky_footer='true']");
49 switchToWindow("Kuali");
50 }
51
52 protected void testGeneralFeaturesExample2() throws Exception {
53 waitAndClickByLinkText("Sticky Page Footer");
54 waitAndClickByLinkText("Sticky page footer");
55 switchToWindow("Kuali :: View Header");
56 waitForElementPresentByXpath("//footer[@id='Uif-ApplicationFooter-Wrapper']");
57 switchToWindow("Kuali");
58 }
59
60 protected void testGeneralFeaturesExample3() throws Exception {
61 waitAndClickByLinkText("Sticky View Footer");
62 waitAndClickByLinkText("Sticky view footer");
63 switchToWindow("Kuali :: View Header");
64 waitForElementPresentByXpath("//div[@class='uif-horizontalBoxGroup clearfix uif-stickyFooter uif-stickyButtonFooter']");
65 switchToWindow("Kuali");
66 }
67
68 protected void testGeneralFeaturesExample4() throws Exception {
69 waitAndClickByLinkText("Sticky View Footer and Page Footer");
70 waitAndClickByLinkText("Sticky page and view footer");
71 switchToWindow("Kuali :: View Header");
72 waitForElementPresentByXpath("//div[@class='uif-horizontalBoxGroup clearfix uif-stickyFooter uif-stickyButtonFooter' and @data-sticky_footer='true']");
73 switchToWindow("Kuali");
74 }
75
76 protected void testGeneralFeaturesExample5() throws Exception {
77 waitAndClickByLinkText("Sticky Everything");
78 waitAndClickByLinkText("All footer content sticky");
79 switchToWindow("Kuali :: View Header");
80 waitForElementPresentByXpath("//footer[@class='uif-stickyFooter' and @data-sticky_footer='true']");
81 waitForElementPresentByXpath("//footer[@id='Uif-ApplicationFooter-Wrapper' and @data-sticky_footer='true']");
82 switchToWindow("Kuali");
83 }
84
85 @Test
86 public void testGeneralFeaturesUnifiedViewFooter1Bookmark() throws Exception{
87 testGeneralFeaturesExample1();
88 passed();
89 }
90
91 @Test
92 public void testGeneralFeaturesUnifiedViewFooter1Nav() throws Exception{
93 testGeneralFeaturesExample1();
94 passed();
95 }
96
97 @Test
98 public void testGeneralFeaturesUnifiedViewFooter2Bookmark() throws Exception{
99 testGeneralFeaturesExample2();
100 passed();
101 }
102
103 @Test
104 public void testGeneralFeaturesUnifiedViewFooter2Nav() throws Exception{
105 testGeneralFeaturesExample2();
106 passed();
107 }
108
109 @Test
110 public void testGeneralFeaturesUnifiedViewFooter3Bookmark() throws Exception{
111 testGeneralFeaturesExample3();
112 passed();
113 }
114
115 @Test
116 public void testGeneralFeaturesUnifiedViewFooter3Nav() throws Exception{
117 testGeneralFeaturesExample3();
118 passed();
119 }
120
121 @Test
122 public void testGeneralFeaturesUnifiedViewFooter4Bookmark() throws Exception{
123 testGeneralFeaturesExample4();
124 passed();
125 }
126
127 @Test
128 public void testGeneralFeaturesUnifiedViewFooter4Nav() throws Exception{
129 testGeneralFeaturesExample4();
130 passed();
131 }
132
133 @Test
134 public void testGeneralFeaturesUnifiedViewFooter5Bookmark() throws Exception{
135 testGeneralFeaturesExample5();
136 passed();
137 }
138
139 @Test
140 public void testGeneralFeaturesUnifiedViewFooter5Nav() throws Exception{
141 testGeneralFeaturesExample5();
142 passed();
143 }
144 }