Support site-specific wait via browsertrix-behaviors (#555)

The 0.6.0 release of Browsertrix Behaviors /
webrecorder/browsertrix-behaviors#70 introduces support for site-specific behaviors to implement an `awaitPageLoad()` function which allows for waiting for specific resources on the page load.
- This PR just adds a call to this function directly after page load.
- Factors out into an `awaitPageLoad()` method used in both crawler and replaycrawler to support the same wait in QA Mode
- This is to support custom loading wait time for Instagram (other sites in the future)
This commit is contained in:
Ilya Kreymer 2024-04-18 17:16:57 -07:00 committed by GitHub
parent 75b617dc94
commit 51d82598e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 32 additions and 24 deletions

View file

@ -19,7 +19,7 @@
"@novnc/novnc": "^1.4.0",
"@types/sax": "^1.2.7",
"@webrecorder/wabac": "^2.16.12",
"browsertrix-behaviors": "^0.5.3",
"browsertrix-behaviors": "^0.6.0",
"crc": "^4.3.2",
"get-folder-size": "^4.0.0",
"husky": "^8.0.3",