File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed
src/test/java/ru/mystamps/web/tests Expand file tree Collapse file tree 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>
3636 }
3737
3838 protected void checkStandardStructure () {
39- shouldHaveForm ();
4039 shouldHaveFields ();
4140 shouldHaveLabels ();
4241 shouldHaveSubmitButton ();
@@ -48,12 +47,6 @@ protected void checkStandardStructure() {
4847 fieldsValuesShouldBePreservedWhenErrorOccurs ();
4948 }
5049
51- private void shouldHaveForm () {
52- assertThat (page .formExists ())
53- .overridingErrorMessage ("form tag should exists" )
54- .isTrue ();
55- }
56-
5750 private void shouldHaveFields () {
5851 for (Field field : page .getForm ().getFields ()) {
5952 if (field .isAccessibleByAll ()) {
Original file line number Diff line number Diff line change @@ -87,15 +87,6 @@ public AbstractPage submit() {
8787 return this ;
8888 }
8989
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-
9990 public String getInputLabelValue (String id ) {
10091 return getTextOfElementByXPath (String .format (LABEL_LOCATOR , id ));
10192 }
You can’t perform that action at this time.
0 commit comments