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

clean valid

上级 14e5c799
...@@ -31,13 +31,13 @@ export class BrowserDriver { ...@@ -31,13 +31,13 @@ export class BrowserDriver {
if (this.driver) { if (this.driver) {
try { try {
const valid = await this.valid(this.driver) // const valid = await this.valid(this.driver)
if (valid) { // if (valid) {
// await this.driver.close() // // await this.driver.close()
await this.driver.quit() await this.driver.quit()
} // }
} catch (e) { } catch (e) {
log.warn('PuppetWebBrowserDriver', 'init() this.driver.quit() exception: %s' log.warn('PuppetWebBrowserDriver', 'init() this.driver.quit() soft exception: %s'
, e.stack , e.stack
) )
} }
...@@ -206,11 +206,11 @@ export class BrowserDriver { ...@@ -206,11 +206,11 @@ export class BrowserDriver {
.withCapabilities(customPhantom) .withCapabilities(customPhantom)
.build() .build()
const valid = await this.valid(driver) // const valid = await this.valid(driver)
if (!valid) { // if (!valid) {
throw new Error('invalid driver founded') // throw new Error('invalid driver founded')
} // }
/* tslint:disable:jsdoc-format */ /* tslint:disable:jsdoc-format */
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册