Sets the supplied HTML string to the current page.
import { chromium } from 'k6/experimental/browser'; export default async function () { const browser = chromium.launch(); const page = browser.newPage(); const htmlContent = ` <!doctype html> <html> <head><meta charset='UTF-8'><title>Test</title></head> <body>Test</body> </html> `; page.setContent(htmlContent);}