You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is the following...
From user perspective we really do not care in elements of collection that are not visible. Why then not include filteredBy(be.visible) into browser.all by default? or make it configurable at least in some Configuration.onlyVisibleElementsInCollection
The text was updated successfully, but these errors were encountered:
If we will be thinking only from user perspective, there is probably no need in setValueByJs, and clickByJs since users don't do that, and we need that for cases where UI has specifics, which we should workaround...and in this case ( which has a lot of real life examples ) we probably don't want to restrict users by doing be.visible default behavior of browser.all...
Introducing variable such as Configuration.onlyVisibleElementsInCollection can be a bit tricky, because:
if we should introduce it when declaring collection - basically that means that we should do something like browser.all(...).configuredWith({onlyVisibleElementsInCollection}) and that does not make sense, since browser.all(...).filteredBy(be.visible) is shorted and easier to understand...
if we want to introduce it globally, that basically means that we generally care only about visible elements for collections, and there are no or few cases when we need to work on hidden elements, that property makes sense since it will make code clearer...but when i'm thinking about that, i have a question in my mind - why don't do that with plain Elements also ? :)
The idea is the following...
From user perspective we really do not care in elements of collection that are not visible. Why then not include filteredBy(be.visible) into browser.all by default? or make it configurable at least in some Configuration.onlyVisibleElementsInCollection
The text was updated successfully, but these errors were encountered: