import { waitForDomSettled } from '@intuned/browser';
export default async function handler(params, page, context){
// Navigate to a dynamic page
await page.goto('https://docs.intunedhq.com/docs-old/getting-started/introduction');
// Wait for entire page content to stabilize
const settled = await waitForDomSettled({
source: page,
settleDurationMs: 1000
});
if (settled) {
// Safe to scrape or interact with content
console.log(`Found stable items`);
} else {
console.log("DOM never fully settled, proceeding anyway");
}
}