page.waitForNavigation -> page.waitForURL

This commit is contained in:
Ralf Vogler 2023-02-04 21:37:04 +01:00
parent eb17a49628
commit b9e9abe546
3 changed files with 6 additions and 8 deletions

1
gog.js
View file

@ -76,7 +76,6 @@ try {
process.exit(1);
}
}
// await page.waitForNavigation(); // TODO was blocking
context.setDefaultTimeout(cfg.timeout);
}
const user = await page.locator('#menuUsername').first().textContent(); // innerText is uppercase due to styling!