Closed jethac closed 8 years ago
Thanks Jetha, nice idea!
I was actually contemplating the idea of stealing Protractor's webdriver-manager logic: https://github.com/angular/protractor/blob/master/bin/webdriver-manager
Or parsing: https://selenium-release.storage.googleapis.com/
What do you think?
Hmm, parsing the latter sounds like it could be good! Let me take a look :)
It appears that a while back, the maintainers of Selenium shifted to using a Google minified link instead of a direct link to the Selenium server JAR file. This broke mdk behat, which was using a regex based on the JAR file's name.
This pull request represents the use of LXML and XPath to find the correct link. Unfortunately as the source page being scraped is not particularly semantic I don't think there's a better way of doing this at present.