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

#40 bump to v0.5.0!

上级 9066d738
{
"name": "wechaty",
"version": "0.4.0",
"version": "0.5.0",
"description": "Wechat for Bot (Personal Account)",
"main": "index.js",
"types": "./index.d.ts",
......@@ -93,7 +93,7 @@
"chromedriver": "^2.23.1",
"express": "^4.13.4",
"is-ci": "^1.0.9",
"phantomjs-prebuilt": "^2.1.12",
"phantomjs-prebuilt": "^2.1.13",
"ps-tree": "^1.0.1",
"retry-promise": "^1.0.0",
"selenium-webdriver": "^3.0.0-beta-1",
......
......@@ -168,11 +168,13 @@ export class Browser extends EventEmitter {
public driver(newDriver: WebDriver): WebDriver
public driver(newDriver?: WebDriver | null): WebDriver | void {
log.silly('PuppetWebBrowser', 'driver(%s)'
, typeof newDriver === 'undefined'
? ''
: newDriver
)
if (newDriver !== undefined) {
log.silly('PuppetWebBrowser', 'driver(%s)'
, newDriver
? newDriver.constructor.name
: null
)
}
if (typeof newDriver !== 'undefined') {
if (newDriver) {
......@@ -248,6 +250,9 @@ export class Browser extends EventEmitter {
private getPhantomJsDriver(): WebDriver {
// setup custom phantomJS capability https://github.com/SeleniumHQ/selenium/issues/2069
const phantomjsExe = require('phantomjs-prebuilt').path
if (!phantomjsExe) {
throw new Error('phantomjs binary path not found')
}
// const phantomjsExe = require('phantomjs2').path
const phantomjsArgs = [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册