Skip to content

Commit

Permalink
reverted changes for #1705 to experiment later
Browse files Browse the repository at this point in the history
  • Loading branch information
vdelendik committed Jun 9, 2022
1 parent 47cf701 commit a1c4ee1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1297,12 +1297,13 @@ private String getUrl() {

private long getPageLoadTimeout() {
long timeout = 300;
if (!R.CONFIG.get("capabilities.idleTimeout").isEmpty()) {
long idleTimeout = R.CONFIG.getLong("capabilities.idleTimeout");
if (idleTimeout < timeout) {
timeout = idleTimeout;
}
}
// #1705: limit pageLoadTimeout driver timeout by idleTimeout
// if (!R.CONFIG.get("capabilities.idleTimeout").isEmpty()) {
// long idleTimeout = R.CONFIG.getLong("capabilities.idleTimeout");
// if (idleTimeout < timeout) {
// timeout = idleTimeout;
// }
// }
return timeout;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -755,12 +755,13 @@ private static WebDriver castDriver(WebDriver drv) {

private static long getPageLoadTimeout() {
long timeout = 300;
if (!R.CONFIG.get("capabilities.idleTimeout").isEmpty()) {
long idleTimeout = R.CONFIG.getLong("capabilities.idleTimeout");
if (idleTimeout < timeout) {
timeout = idleTimeout;
}
}
// #1705: limit pageLoadTimeout driver timeout by idleTimeout
// if (!R.CONFIG.get("capabilities.idleTimeout").isEmpty()) {
// long idleTimeout = R.CONFIG.getLong("capabilities.idleTimeout");
// if (idleTimeout < timeout) {
// timeout = idleTimeout;
// }
// }
return timeout;
}

Expand Down

0 comments on commit a1c4ee1

Please sign in to comment.