1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.travel.krad.test;
17
18 import static junit.framework.Assert.assertEquals;
19
20 import edu.samplu.common.WebDriverLegacyITBase;
21 import org.junit.Test;
22
23 import edu.samplu.common.ITUtil;
24 import edu.samplu.common.WebDriverITBase;
25
26
27
28
29
30
31
32 public class WatermarkValidationIT extends WebDriverITBase {
33 @Override
34 public String getTestUrl() {
35 return ITUtil.PORTAL;
36 }
37
38 @Test
39
40
41
42
43 public void testWatermarking() throws Exception {
44 waitAndClickByLinkText("KRAD");
45 Thread.sleep(5000);
46 waitAndClickByLinkText(WebDriverLegacyITBase.UIF_COMPONENTS_KITCHEN_SINK_LINK_TEXT);
47 Thread.sleep(5000);
48 Thread.sleep(2000);
49
50 switchWindow();
51 Thread.sleep(3000);
52 assertEquals("It's watermarked ",getAttributeByName("field106", "placeholder"));
53 assertEquals("Watermark... ",getAttributeByName("field110", "placeholder"));
54 }
55 }