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

clean valid

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