testdevlab / TestUI

MIT License
33 stars 9 forks source link

Allow setting default `waitFor()` time #68

Open aleksslitvinovs opened 3 years ago

aleksslitvinovs commented 3 years ago

To simplify TestUI usage and to reduce the amount of code, it would be nice to create waitFor() that doesn't require any parameters (while still keeping the current implementation) that uses some default value specified in Configuration.java.

Example usage

// current usage
someElement.waitFor(10).untilIsVisible().click();

// proposed usage
someElement.waitFor().untilIsVisible().click();