Open RomanIovlev opened 5 years ago
https://github.com/jdi-testing/jdi-light/blob/master/jdi-light/src/main/java/com/epam/jdi/light/elements/base/JDIBase.java Add searchRule property for the element Implement chain methods noValidation(), onlyVisible(), onlyEnabled() And Rules for them ANY_ELEMENT = el -> el != null; VISIBLE_ELEMENT = el -> el.isDisplayed(); ENABLED_ELEMENT = el -> el != null && el.isDisplayed() && el.isEnabled();
Discuss w/ @elv1s42
https://github.com/jdi-testing/jdi-light/blob/master/jdi-light/src/main/java/com/epam/jdi/light/elements/base/JDIBase.java Add searchRule property for the element Implement chain methods noValidation(), onlyVisible(), onlyEnabled() And Rules for them ANY_ELEMENT = el -> el != null; VISIBLE_ELEMENT = el -> el.isDisplayed(); ENABLED_ELEMENT = el -> el != null && el.isDisplayed() && el.isEnabled();