#358 Disable creating .html file, while creating screenshot
Disable creating .html file, while creating screenshot
Thanks for the PR!
However, there is one problem. If failed to take screenshot, Selenide returned html (with default settings). Now it does not return html. :(
Yes indeed, now method takeScreenShot doesn't return html.
But it's a rare case when screenshoting fails and we need return smth != null. And I believe end-user should setup its enviroment in these cases, if they want screenshots.
Also, it looks strange: method takeScreenShot() in fact could return path to non-screenshot file.
Nevertheless, if you don't think so, let me know and I change fix.
#359 fix code formatting
@BorisOsipov I don't like losing old functionality.
However, it was not well-designed. Error message should show path to both ".html" and ".png" files - see issue 210. So, let's merge current PR as is and implement issue 210.
Thanks for the PR! Merged.