A little too un-puppeteer for you? You can attach all the
DOM Testing Library
methods directly onto puppeteer's
Unique methods, not part of
DOM Testing Library.
getDocument(page: puppeteer.Page): ElementHandle- get an ElementHandle for the document
DOM Testing Library is injected into the page that puppeteer is controlling on
each query, so all results will be async. It's still recommended that you use
puppeteer's built-in methods for interaction rather than
waitForElementmethod is not exposed. Puppeteer has its own set of wait utilities that somewhat conflict with the style used in
DOM Testing Library. See the issue on GitHub.
fireEventmethod is not exposed, use puppeteer's built-ins instead.
expectassertion extensions are not available.