如何在Docker中使用Selenium?

时间:2019-02-22 00:25:22

标签: python selenium docker firefox

我期望selenium在docker运行脚本后运行,起初我得到了错误

Could not find firefox in your system PATH. Please specify the firefox binary location or install firefox

所以我试着用 RUN apt-get install firefox,但出现错误

Message: The browser appears to have exited before we could connect. If you specified a log_file in the FirefoxBinary constructor, check it for details.

我已经检查了我的日志文件,它是空的

0 个答案:

没有答案