Skip to content

Latest commit

 

History

History

testing-dom__page-source

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Page source

Get the source of the page under test

Current HTML as text

You can get the current document's HTML using document.documentElement.outerHTML property. Then you can validate / sanitize the HTML. You can even write it back as text into the current browser to see it, as spec.cy.js shows.