»User:
»Password:
Remember Me? 
FireShot - Full webpage screenshot tool support forum / FireShot Browser Extension / Premium Support

Unable to take screenshot of scrolling web page by running code in browser console

Pages: 1
Posted:  09 Feb 2022 14:25
Hi,

We were able to capture the page by running a code snippet on console for the first couple of times. Strangely, after some time, an error was thrown and couldn't capture the page on doing the same again.
Below is the code we ran on console.
Code:


FireShotAPI.base64EncodePage(true, undefined, function (imgData) {
    let image = new Image();
    image.src = imgData;
    let w = window.open("");
    w.document.write(image.outerHTML);
});


It didn't capture the page but threw the below error on console.

Unchecked runtime.lastError: The message port closed before a response was received.

But, when we run the same code through a button click event (clicking the button physically with the mouse), it is working fine with no errors observed and the page is captured. And, not in case we click the button programmatically using
Code:

$("#buttonID").click();


Below are the details:

Plugin version: FireShot Pro for Chrome v.0.99.15
OS type and version: Windows 10 Business
Version of browser: Google Chrome (Version 97.0.4692.99 (Official Build) (64-bit))
Steps to reproduce the bug: Place the above code in a button click event and try to click the button manually and programmatically as mentioned above.
Webpage URL causing this problem: Working on a local (HTML/JS) file
Pages: 1

 

 

This is the Premium Support area for the users who have purchased FireShot Pro or Screenshot Studio products.

Please Login or Register to see a full thread.

 

 



Recent topics Replies Views Last Poster
Popup selection only captures background
3 930
Capturing Selection and Duplicating it
1 853
Not Capturing Scrolling Screenshot (Chrome)
4 1122
How to update ?
1 1136
How i can remove the "hold ctrl key down to capture....View Demo/Close" Hint?
1 976
How to stop capturing entire web page after desired section has been captured ?
5 985
License key not delivered to me
2 975
When available for Mac?
0 1379
Activate Pro version
1 1196
PRO DOWNLOAD
1 1631