Is there a way to programmatically save an entire webpage using Selenium Webdriver JS in Firefox? I have been able to bring up the Save As dialog with the following code:
driver.findElement(webdriver.By.tagName('html')).sendKeys(Key.CONTROL + 's');
However, I am unsure how to specify a file name or trigger the enter key press. Is it possible to interact with this dialog using Selenium Webdriver JS, or is there a way to bypass the dialog altogether and directly save the page to disk?
I would greatly appreciate any help on this matter.