import mql from '@microlink/mql' const { data } = await mql('https://dev.to', { screenshot: true, waitForSelector: "main" })
waitForSelector
Type:
<string>
It tells the browser to wait until a specific
CSS selector
appears over the target url.import mql from '@microlink/mql' const { data } = await mql('https://dev.to', { screenshot: true, waitForSelector: "main" })