Is there a way to get / save the DOM with Selenium?
What I'm looking for is a method that works like "captureScreenshot (String path)", but instead of generating the image, the DOM is saved as it is currently. Please note that the existing getBodyText () method is not sufficient.