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

Make find_elements functions generators. #1

Open
TannerBaldus opened this issue Jan 23, 2015 · 0 comments
Open

Make find_elements functions generators. #1

TannerBaldus opened this issue Jan 23, 2015 · 0 comments

Comments

@TannerBaldus
Copy link

I found when using find_elements when there was a lot of elements took a bit of time. I think some execution time could be saved if they find_elements didn't return a list but instead was a generator.
I haven't tested to see if the list or the selenium search was the main culprit of the delay. But I thought I'd bring it up with you since you might have some insight into that.

One possible con I could think of changing over to a generator would be that sometimes it would be useful to be able manipulate elements based off the index. However with a generator a dev could easily cast to list if she wants.

If this sounds like something that you'd like to incorporate, I'll work on it in a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant