sveneisenschmidt / selenium-server-standalone

Composer distribution of Selenium Server Standalone, the browser automation framework.
Apache License 2.0
89 stars 24 forks source link

Include ChromeDriver #26

Open DavertMik opened 7 years ago

DavertMik commented 7 years ago

Currently Selenium is usually not enough to launch tests as it may require ChromeDriver or GeckoDriver to work on. Would it be possible for this project to include ChromeDriver as well?

asgrim commented 7 years ago

I don't think this is within the scope of this project; it doesn't make sense to bundle any browser-specific driver within. I understand from a convenience point of view, but it would make understanding the release schedules pretty hectic. Which driver(s) would we bundle? Why? How often are they updated (and, by proxy, how often would we have to release). Seems like an unnecessary maintenance burden to me...

DavertMik commented 7 years ago

I was just looking to something similar to https://www.npmjs.com/package/selenium-standalone and I didn't find any good library in PHP except this one :+1: It would be cool if there was a way for newbies to launch selenium without pain by installing just a single package. Something similar to what Laravel Dusk does.


As for maintenance I think it can be done with a simple PHP script:

asgrim commented 7 years ago

Something to download the latest driver could be workable, yeah. But I wouldn't bundle the binaries in this repo (as the JAR already is). :+1:

DavertMik commented 7 years ago

Possible solution:

  1. install laravel/dusk,
  2. copy chromedriver out of it
  3. remove laravel dusk
  4. PROFIT :rofl:
sveneisenschmidt commented 7 years ago

There could be additional repositories/packages setup to handle this. selenium-driver-chrome, selenium-driver-firefox, ....

We could add them as suggested packages via composer.

DavertMik commented 6 years ago

Btw there is already an initiative from Joomla you know about. https://github.com/joomla-projects/selenium-server-standalone

Did you have a chance to get more steps into merging the forces?

sveneisenschmidt commented 6 years ago

@DavertMik I am open to pursue this further. Thanks for the little push. https://github.com/joomla-projects/selenium-server-standalone/issues/25