update
This commit is contained in:
@@ -127,6 +127,15 @@ async function scrapeMembers(frame: Frame): Promise<FdiskMember[]> {
|
|||||||
await frame.goto(MEMBERS_URL, { waitUntil: 'domcontentloaded' });
|
await frame.goto(MEMBERS_URL, { waitUntil: 'domcontentloaded' });
|
||||||
await frame.waitForLoadState('networkidle');
|
await frame.waitForLoadState('networkidle');
|
||||||
|
|
||||||
|
const frameUrl = frame.url();
|
||||||
|
const frameTitle = await frame.title();
|
||||||
|
log(`Members frame loaded: ${frameUrl} — title: "${frameTitle}"`);
|
||||||
|
|
||||||
|
const tableClasses = await frame.$$eval('table', (ts) =>
|
||||||
|
ts.map((t) => `${t.className || '(no-class)'}[${t.querySelectorAll('tr').length}rows]`),
|
||||||
|
);
|
||||||
|
log(`Tables in frame: ${tableClasses.join(', ') || 'none'}`);
|
||||||
|
|
||||||
// The member table uses class FdcLayList
|
// The member table uses class FdcLayList
|
||||||
await frame.waitForSelector('table.FdcLayList', { timeout: 20000 });
|
await frame.waitForSelector('table.FdcLayList', { timeout: 20000 });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user