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
Since both FluentMatcher and FluentWebElementVistor are single function interfaces, they can be used with Java 8 lambda functions. This is wonderful! kudos.
Please update the README when discussing each of these to provide an example of the lambda equivalent, e.g.
// Note that FluentMatcher is also compatible with Java 8 lambda functions:listofMatchingelements = fwd.inputs(className("bar").filter(
(FluentWebElementel, intix) -> true
);
And similarly for FluentWebElementVisitor.
It would also be great to provide a stream of these, but that is more complicated and might break backwards compatibility with Java 7 compilation. I'd argue that this is still worth it - if your user is still using Java 7, they are likely not keeping up with Selenium changes, but since sometimes these must be done because of new browsers, I'll let you guys decide.
The text was updated successfully, but these errors were encountered:
Since both
FluentMatcher
andFluentWebElementVistor
are single function interfaces, they can be used with Java 8 lambda functions. This is wonderful! kudos.Please update the README when discussing each of these to provide an example of the lambda equivalent, e.g.
And similarly for
FluentWebElementVisitor
.It would also be great to provide a stream of these, but that is more complicated and might break backwards compatibility with Java 7 compilation. I'd argue that this is still worth it - if your user is still using Java 7, they are likely not keeping up with Selenium changes, but since sometimes these must be done because of new browsers, I'll let you guys decide.
The text was updated successfully, but these errors were encountered: