File tree 2 files changed +0
-16
lines changed
src/test/java/ru/mystamps/web/tests
2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ abstract class WhenAnyUserAtAnyPageWithForm<T extends AbstractPageWithForm>
36
36
}
37
37
38
38
protected void checkStandardStructure () {
39
- shouldHaveForm ();
40
39
shouldHaveFields ();
41
40
shouldHaveLabels ();
42
41
shouldHaveSubmitButton ();
@@ -48,12 +47,6 @@ protected void checkStandardStructure() {
48
47
fieldsValuesShouldBePreservedWhenErrorOccurs ();
49
48
}
50
49
51
- private void shouldHaveForm () {
52
- assertThat (page .formExists ())
53
- .overridingErrorMessage ("form tag should exists" )
54
- .isTrue ();
55
- }
56
-
57
50
private void shouldHaveFields () {
58
51
for (Field field : page .getForm ().getFields ()) {
59
52
if (field .isAccessibleByAll ()) {
Original file line number Diff line number Diff line change @@ -87,15 +87,6 @@ public AbstractPage submit() {
87
87
return this ;
88
88
}
89
89
90
- public boolean formExists () {
91
- Validate .validState (
92
- form != null ,
93
- "You are trying to check form at page which does not has form"
94
- );
95
-
96
- return elementWithXPathExists (form .toString ());
97
- }
98
-
99
90
public String getInputLabelValue (String id ) {
100
91
return getTextOfElementByXPath (String .format (LABEL_LOCATOR , id ));
101
92
}
You can’t perform that action at this time.
0 commit comments