File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed
test/java/ru/mystamps/web/tests/page Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
- <div id=" footer" >
1
+ <footer>
2
2
©
3
3
<a href="mailto:<spring:message code="t_site_author_email" />" title="<spring:message code="t_write_email" />"><spring:message code="t_site_author_name" /></a>, 2009-2012
4
- </div >
4
+ </footer >
Original file line number Diff line number Diff line change 24
24
width : 20% ;
25
25
}
26
26
27
- # footer {
27
+ footer {
28
28
background-color : # f5f5f5 ;
29
29
text-align : right;
30
30
border-top : dotted 1px ;
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ public String getHeader() {
129
129
}
130
130
131
131
public boolean footerExists () {
132
- return elementWithIdExists ("footer" );
132
+ return elementWithTagNameExists ("footer" );
133
133
}
134
134
135
135
public boolean linkWithLabelExists (final String label ) {
@@ -224,6 +224,18 @@ protected boolean elementWithXPathExists(final String xpath) {
224
224
return el != null ;
225
225
}
226
226
227
+ protected boolean elementWithTagNameExists (final String tagName ) {
228
+ WebElement el = null ;
229
+
230
+ try {
231
+ el = getElementByTagName (tagName );
232
+ } catch (final NoSuchElementException ex ) {
233
+ return false ;
234
+ }
235
+
236
+ return el != null ;
237
+ }
238
+
227
239
protected WebElement getLinkByText (final String linkText ) {
228
240
try {
229
241
return driver .findElement (By .linkText (linkText ));
You can’t perform that action at this time.
0 commit comments