Packages

Playwright Assets is a package for installing and running test assets in Playwright Node.js and Elixir implementations.

Current section

Files

Jump to
playwright_assets priv assets networkidle.js
Raw

priv/assets/networkidle.js

async function main() {
window.ws = new WebSocket('ws://localhost:' + window.location.port + '/ws');
window.ws.addEventListener('message', message => {});
fetch('fetch-request-a.js');
window.top.fetchSecond = () => {
// Do not return the promise here.
fetch('fetch-request-b.js');
};
}
main();