private boolean isNotPresentDisplayedEnabledInput ( String action , String expected , String extra ) { // wait for element to be present if ( isNotPresent ( action , expected , extra ) ) { return true ; } // wait for element to be displayed if ( isNotDisplayed ( action , expected , extra ) ) { return true ; } // wait for element to be enabled return isNotEnabled ( action , expected , extra ) || isNotInput ( action , expected , extra ) ; }
Determines if something is present displayed enabled and an input . This returns true if all four are true otherwise it returns false