Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve eficciency of NonEmptyNavigator's constructor for larger collections of web elements #223

geb-bot opened this issue Oct 4, 2012 · 3 comments


Copy link

@geb-bot geb-bot commented Oct 4, 2012

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!

Copy link

@geb-bot geb-bot commented Oct 17, 2012

Originally posted by Luke Daley.

This will be interesting.

I'll look at this as soon as I'm back.

Copy link

@geb-bot geb-bot commented Oct 23, 2012

Originally posted by Marcin Erdmann.

Fixed in geb/geb@2f7f281

Copy link

@geb-bot geb-bot commented Aug 18, 2013


@geb-bot geb-bot added the Bug label Apr 12, 2015
@geb-bot geb-bot added this to the 0.9.0 milestone Apr 12, 2015
@geb-bot geb-bot closed this as completed Apr 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants