splinter icon indicating copy to clipboard operation
splinter copied to clipboard

Expected browser binary location, but unable to find binary in default location

Open trahloff opened this issue 9 years ago • 2 comments

With the Dockerfile:

FROM python:2.7-onbuild

RUN cd /usr/src/app
RUN mkdir /usr/src/app/drivers
RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.14.0/geckodriver-v0.14.0-linux32.tar.gz
RUN tar xzf geckodriver-v0.14.0-linux32.tar.gz -C /usr/src/app/drivers
env PATH /usr/src/app/drivers:$PATH

CMD [ "python", "./app.py" ]

I get the error: selenium.common.exceptions.WebDriverException: Message: Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line

The geckodriver is downloaded and added to tha PATH. When I try this on a native Win10 machine (w/o Docker) the app.py works.

Are there some undocumented dependencies?

trahloff avatar Feb 09 '17 20:02 trahloff

@trahloff hi, did you install Firefox to the image?

1pyxa1 avatar Apr 26 '17 11:04 1pyxa1

Seems like this is only an issue with Firefox not being installed to the image. Closing.

javascript-error avatar Jul 22 '20 13:07 javascript-error