Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit afedd67

Browse files
author
Marcy Sutton
committed
fix: handle phantomjs and selenium without errors
Closes #3
1 parent c620e0d commit afedd67

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/webdriver.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ function startDriver(config) {
3434
}
3535

3636
function stopDriver(config) {
37+
if (config.browser !== 'phantomjs') {
38+
config.driver.quit();
39+
}
3740
if (config.phantom) {
3841
config.phantom.kill();
3942
}

0 commit comments

Comments
 (0)