title: How to capture html frame as an image
body: <p>I need to open a webpage from Python and capture what I see in browser as an image(or rather what should be seen, because I want to execute it in background). 
  The webpage contains JavaScript - one frame has caption dependent on script evaluation and I want it also to be captured.</p>