jdi-testing / jdi-light-csharp

Powerful Framework for UI Automation Testing on C#
https://jdi-docs.github.io/jdi-light/
MIT License
4 stars 8 forks source link

Implement Validation Rules #185

Open RomanIovlev opened 5 years ago

RomanIovlev commented 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();

AlexeyGirin commented 5 years ago

Discuss w/ @elv1s42