graceful-playwright 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core.js +4 -3
- package/package.json +1 -1
package/core.js
CHANGED
|
@@ -49,10 +49,11 @@ class GracefulPage {
|
|
|
49
49
|
}
|
|
50
50
|
catch (error) {
|
|
51
51
|
let message = String(error);
|
|
52
|
+
let urlStr = JSON.stringify(url);
|
|
52
53
|
let flags = {
|
|
53
|
-
retry:
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
retry: message.includes(`Navigation to ${urlStr} is interrupted by another navigation to ${urlStr}`) ||
|
|
55
|
+
// e.g. 'Timeout 30000ms exceeded'
|
|
56
|
+
/Timeout [\w]+ exceeded/.test(message) ||
|
|
56
57
|
message.includes('ERR_NETWORK_CHANGED') ||
|
|
57
58
|
message.includes('ERR_CONNECTION_RESET') ||
|
|
58
59
|
message.includes('ERR_SOCKET_NOT_CONNECTED') ||
|