logging link text

average
Matt Huntington 2 years ago
parent 4015f90cbf
commit 8d910f5d6f

@ -36,6 +36,13 @@ const delay = (ms) => {
console.log('filtering instances');
await page.waitForNavigation();
const elems = await page.$$('tr td:nth-child(2) a');
for(elem of elems){
const prop = await elem.getProperty('innerHTML');
const value = await prop.jsonValue();
console.log(value);
}
console.log('done');
await page.screenshot({ path: 'outcomes.png' })
await browser.close();

Loading…
Cancel
Save