/*!
 * KoliBri - The accessible HTML-Standard
 */
const setContentWithRetry = async (page, html) => {
    try {
        await page.setContent(html);
    }
    catch (error) {
        const message = error instanceof Error ? error.message : String(error);
        if (!message.includes('page.waitForFunction: Timeout')) {
            throw error;
        }
        await page.waitForTimeout(250);
        await page.setContent(html);
    }
};
export { setContentWithRetry };
//# sourceMappingURL=setContentWithRetry.js.map
