Originally created by Marcin Erdmann.
Due to the fact that in the constructor of NonEmptyNavigator we're calling unique() on the collection of webelements passed in it means that we're comparing each element with all the others. It turns out that the equals() implementation of RemoteWebElement sends a command to the browser to get the result of the comparison which is quite a time consuming thing to do. So if our selector passed to $/find returns 25 elements we will do 300 more calls to the remote browser to make sure that we have no duplicates, which means that creating the navigator will most probably take over a second!
Originally posted by Luke Daley.
This will be interesting.
I'll look at this as soon as I'm back.
Originally posted by Marcin Erdmann.
Fixed in geb/geb@2f7f281