markhobson / docker-maven-chrome

Docker image for Java automated UI tests.
https://hub.docker.com/r/markhobson/maven-chrome/
Apache License 2.0
101 stars 82 forks source link

Usage with protractor #13

Closed egwepas closed 5 years ago

egwepas commented 5 years ago

I'm using our image to run protractor tests (from within maven using maven-frontend-plugin).

Do you know if there is a way to tell protractor to use the webdriver that is bundled within your docker image ?

We are currently doing a "webdriver update" that will, most of the time, download an incompatible (version-wise) webdriver.

markhobson commented 5 years ago

Hi, have you tried setting chromeDriver in the Protractor conf.js file? Something like this may work:

exports.config = {
  chromeDriver: '/usr/bin/chromedriver'
}
egwepas commented 5 years ago

It workds, indeed, thanks a lot for your quick answer !

It might be a good idea to add that into your readme.

markhobson commented 5 years ago

Great, glad it worked okay!

Not sure about documenting this as the image isn't Protractor specific. If it becomes a common problem then I will reconsider.

markhobson commented 5 years ago

Added to README, thanks!