Open AlexWayfer opened 3 years ago
Ooh, nice idea! I use .mhtml files all the time when saving web pages from a browser (so that they're self contained and contain all the assets they need).
It does seem like they could potentially help with this problem too...
Just noticed that ferrum
has built-in support for saving as .mhtml
(https://github.com/rubycdp/ferrum#mhtmloptions--string--integer). :eyes: :exclamation:
Not sure other drivers do, though (I doubt it). But I may play around with Cuprite/Ferrum now that I know it exists...
As you wrote in the README:
It's understandable, but not the best solution for each case, especially for CI (like GitHub Actions) with artifacts.
So, my suggestion is to make MHTML screenshots. Chrome supports it (you can try, it's wonderful!), maybe some other drivers (browsers) too.