yandex-qatools / htmlelements

Html Elements is a Java framework providing easy-to-use way of interaction with web-page elements in web-page tests.
Other
271 stars 116 forks source link

[feature request] add waitFor*() and assert*() functions to TypifiedElement #142

Closed emaks closed 6 years ago

emaks commented 6 years ago

What do you think about possibility to add new functions like assertVisible(), assertExist(), waitForVisible(), waitForActive() etc to TypifiedElement.class. If it's good idea I can make pull request

artkoshelev commented 6 years ago

I don't think bringing checks into objects itself is a good idea. There are existing webdriver matchers in nearby repo as well as provided by selenium. The good part about matchers is that you can combine, decorate and do whole bunch of fun staff with them.