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

Commit 7e98b9d

Browse files
committed
added async script timeout of 90s
1 parent 7a72eda commit 7e98b9d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/webdriver.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ function startDriver(config) {
1212
if (config.browser !== 'phantomjs') {
1313
// Launch a browser
1414
config.driver = builder.build();
15+
config.driver.manage().timeouts().setScriptTimeout(90*1000);
16+
1517
return Promise.resolve(config);
1618

1719
} else {
@@ -23,6 +25,8 @@ function startDriver(config) {
2325

2426
// And connect selenium to our phantom server
2527
config.driver = builder.usingServer('http://localhost:4444').build();
28+
config.driver.manage().timeouts().setScriptTimeout(90*1000)
29+
2630
return Promise.resolve(config);
2731
})
2832

0 commit comments

Comments
 (0)