What "navigation" is waitForNavigation waiting for?
The websites navigation? The browsers refresh icon "navigation" to finish spinning?
Or is this just a awkwardly worded method that should be named waitForBrowserToLoad?
But, when I use it, like so:
await this.page.waitForNavigation();
The page DOES finish loading.
And yet it never resolves. I'm not sure why.
What is waitForNavigation waiting for?
async function beforeScrape(page) {
//code gets this far
await this.page.waitForNavigation();
//never resolves
await page.click(".table-header");
}