Hi,
var callback = function () {
//screen capture call and event catch
}
Emulation.setVisibleSize({width: x, height: y}, callback);
But some webpages are not completely rendered at the time of taking screenshot and I get some incomplete image of the page . I have made sure that both Page.domContentEventFired and Page.loadEventFired
are fired so, all network transaction must be over. I think may be resizing the viewport somehow leads to re-rendering of the page.
I want to take screenshots of the page in different viewport sizes, using remote debugging protocol, is there anyway I can tell if the page is ready to be viewed(i.e ready for the screenshot) after emulation is performed.
Thanks, in advance. Hope to hear something soon.
Satyam.