提交 7ec690ec 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

merge

......@@ -111,7 +111,9 @@ npm install --save wechaty
If you use chrome instead of phantomjs, you should make sure:
1. chrome is installed
1. if you are under linux, set headless right for `xvfb`
1. if you are under linux, set headless right for `Xvfb`
* [Running a GUI application in a Docker container](https://linuxmeerkat.wordpress.com/2014/10/17/running-a-gui-application-in-a-docker-container/)
Then you are set.
......
......@@ -104,10 +104,9 @@ class Browser extends EventEmitter {
getChromeDriver() {
const options = {
args: ['--no-sandbox']
args: ['--no-sandbox'] // issue #26 for run inside docker
}
const customChrome = WebDriver.Capabilities.chrome()
// .set('webdriver.chrome.args', '--no-sandbox')
.set('chromeOptions', options)
return new WebDriver.Builder()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册