Can I use FF Screenshots programmatically?

Hi all!
I was trying to use Firefox Screenshots within some Python scripts for QA. I’m using GeckoDriver with Selenium and I’d need a way to use FF Screenshots on some div elements programmatically.

Is there a way to accomplish this?

Unfortunately on sites that have AJAX infinite scrolling or other fancy things it’s impossible to take a meaningful screenshot.

Thanks for replies!

Not at this time. We’re going to discuss and draft an API around screenshots and it might include this, but it wouldn’t be ready for a long time. I filed so there is a place to get updates at least.