-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathModelTest.java
More file actions
177 lines (144 loc) · 4.19 KB
/
ModelTest.java
File metadata and controls
177 lines (144 loc) · 4.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
package com.nordstrom.automation.selenium.model;
import org.testng.annotations.Test;
import com.nordstrom.automation.selenium.annotations.InitialPage;
import com.nordstrom.automation.selenium.core.ModelTestCore;
import com.nordstrom.automation.selenium.examples.ExamplePage;
import com.nordstrom.automation.selenium.examples.TestNgTargetRoot;
import com.nordstrom.automation.selenium.exceptions.ElementReferenceRefreshFailureException;
@InitialPage(ExamplePage.class)
public class ModelTest extends TestNgTargetRoot {
@Test
public void testBasicPage() {
ModelTestCore.testBasicPage(this);
}
@Test
public void updateTextInputSameValue() {
ModelTestCore.updateTextInputSameValue(this);
}
@Test
public void updateTextInputNewValue() {
ModelTestCore.updateTextInputNewValue(this);
}
@Test
public void updateTextInputBoolValue() {
ModelTestCore.updateTextInputBoolValue(this);
}
@Test
public void updateTextInputNullValue() {
ModelTestCore.updateTextInputNullValue(this);
}
@Test
public void updateCheckboxSameValue() {
ModelTestCore.updateCheckboxSameValue(this);
}
@Test
public void updateCheckboxNewValue() {
ModelTestCore.updateCheckboxNewValue(this);
}
@Test
public void updateCheckboxStringValue() {
ModelTestCore.updateCheckboxStringValue(this);
}
@Test
public void updateCheckboxNullValue() {
ModelTestCore.updateCheckboxNullValue(this);
}
@Test
public void testParagraphs() {
ModelTestCore.testParagraphs(this);
}
@Test
public void testTable() {
ModelTestCore.testTable(this);
}
@Test
public void testFrameByLocator() {
ModelTestCore.testFrameByLocator(this);
}
@Test
public void testFrameByElement() {
ModelTestCore.testFrameByElement(this);
}
@Test
public void testFrameByIndex() {
ModelTestCore.testFrameByIndex(this);
}
@Test(enabled = false)
public void testFrameById() {
ModelTestCore.testFrameById(this);
}
@Test
public void testComponentList() {
ModelTestCore.testComponentList(this);
}
@Test
public void testComponentMap() {
ModelTestCore.testComponentMap(this);
}
@Test
public void testFrameList() {
ModelTestCore.testFrameList(this);
}
@Test
public void testFrameMap() {
ModelTestCore.testFrameMap(this);
}
@Test
public void testShadowRootByLocator() {
skipIfNoShadowDom();
ModelTestCore.testShadowRootByLocator(this).run();
}
@Test
public void testShadowRootByElement() {
skipIfNoShadowDom();
ModelTestCore.testShadowRootByElement(this).run();
}
@Test
public void testShadowRootList() {
skipIfNoShadowDom();
ModelTestCore.testShadowRootList(this).run();
}
@Test
public void testShadowRootMap() {
skipIfNoShadowDom();
ModelTestCore.testShadowRootMap(this).run();
}
/**
* This test verifies that stale elements are automatically refreshed
* and that the search context chain gets refreshed efficiently.
*/
@Test
public void testRefresh() {
ModelTestCore.testRefresh(this);
}
@Test
public void testCssOptional() {
ModelTestCore.testCssOptional(this);
}
@Test
public void testXpathOptional() {
ModelTestCore.testXpathOptional(this);
}
@Test
public void testBogusOptional() {
ModelTestCore.testBogusOptional(this);
}
@Test
public void testOptionalBehavior() {
ModelTestCore.testOptionalBehavior(this);
}
@Test(expectedExceptions = {ElementReferenceRefreshFailureException.class})
public void testFailedReferenceRefreshAttempt() {
ModelTestCore.testReferenceRefreshFailure(this);
}
@Test
public void testShadowParagraphs() {
skipIfNoShadowDom();
ModelTestCore.testShadowParagraphs(this).run();
}
@Test
public void testContainerResolution() {
skipIfSafariOnIOS();
ModelTestCore.testContainerResolution(this);
}
}