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

selenium-download breaking on node 6. #24

Closed
des-des opened this issue Jul 3, 2016 · 16 comments
Closed

selenium-download breaking on node 6. #24

des-des opened this issue Jul 3, 2016 · 16 comments

Comments

@des-des
Copy link
Member

des-des commented Jul 3, 2016

There may be a problem with the module and nodev6: groupon/selenium-download#19.

This may be a problem with node6 + ubuntu or something like that.. Ill investigate.

@des-des des-des self-assigned this Jul 3, 2016
@nelsonic
Copy link
Member

nelsonic commented Jul 3, 2016

Oh... 😕
Thanks for investigating @des-des 👍

@ivarni
Copy link

ivarni commented Jul 12, 2016

Can confirm this. Any progress looking into it or are more eyes needed?

@nelsonic
Copy link
Member

@ivarni if you have time to help investigate, please do!
I cloned the repo and started trying to debug it: https://github.com/dwyl/selenium-download
(invited you as contributor so we can colab on debugging it...)
Enabled Travis-CI so we can track progress: https://travis-ci.org/dwyl/selenium-download/builds

@nelsonic
Copy link
Member

I think that the issue is that the newer version of the download has a breaking change ...

@ivarni
Copy link

ivarni commented Jul 12, 2016

That sounds reasonable given the wording of the error, the code is coffeescript which kinda put me off a bit but I'll try to find some time to have a look. Can't promise I'll get anywhere though.

@nelsonic
Copy link
Member

Yeah, coffeescript ... it should be quite familiar to you if you've been using ES6 (e.g arrow functions)
If you make any progress, commit and push. thanks! 😉

@des-des
Copy link
Member Author

des-des commented Jul 16, 2016

yeah had a look at this but have not got very far: 4kd/selenium-download#2

@des-des
Copy link
Member Author

des-des commented Jul 16, 2016

also, tests seem to be failing whatever node version I am using

@nelsonic
Copy link
Member

The download module made breaking changes which mean the code in selenium-download does not work anymore (with any version of node...)
@des-des do you think we are better off crafting our own clone of selenium-download in ES6 (instead of CoffeeScript) and side-stepping this issue...?

@ivarni
Copy link

ivarni commented Jul 16, 2016

What the code in the selenium-download module does isn't overly complicated, it's the idea behind it that provides value. Rewriting it from scratch shouldn't be that much of a problem in my opinion and doing it in ES6 from the get-go might just make for a better end result than tinkering further with the ES6 code.

@ivarni
Copy link

ivarni commented Jul 17, 2016

As a heads-up, I've already started working on a new module and got downloading the selenium jar working. I'm currently working on getting and unzipping the chromedriver. I've made a separate repo for it for the time being since I don't know if groupon will want a PR such a rewrite but if they do they're quite welcome to it. If not I suppose I'll just publish it. We're using the selenium-download in a project I'm on and it's blocking us from going to v6 and I need to fix that one way or the other.

@ivarni
Copy link

ivarni commented Jul 17, 2016

So I've got learn-nightwatch running using an npm linked version of https://github.com/ivarni/get-selenium but it's still pretty rough around the edges (I've not tested much in the way of error handling yet and update and forceUpdate from the original selenium-download module is not implemented).

Still, it's progress. I think the brunt of the work is done unless I've overseen something (like export default not playing nice with require). Or there is some kinda license problem with doing this. I've borrowed some of the inner workings pretty verbatim from the coffee code.

@des-des des-des removed their assignment Jul 17, 2016
@ivarni
Copy link

ivarni commented Jul 20, 2016

@nelsonic I'd love an opinion on what to do here. Would publishing a new module that does the same as the existing selenium-download module be rude? We already have download and request which are pretty much interchangeable so it wouldn't be unheard of.

I'm prepared to maintain such a module but I'm also prepared to hand it over to someone else, it doesn't really matter to me as I've achieved the thing that brought me here in the first place but since I did put some work into it it would be nice if that can help others as well.

@jkrems
Copy link

jkrems commented Jul 27, 2016

FYI - it was pretty simple to drop download and replace it with request. The code is under BSD, so as long as you include attribution, you can do with it whatever you want. :)

@ivarni
Copy link

ivarni commented Aug 4, 2016

@jkrems Great!

@nelsonic You can probably close this issue. There's no point updating package.json as the dependency is already ^2.0.2. Anyone who already did a npm install should do npm update and anyone who does a fresh install will get the version that works.

@nelsonic
Copy link
Member

nelsonic commented Aug 9, 2016

@jkrems @ivarni thanks! ❤️

@nelsonic nelsonic closed this as completed Aug 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants