Stop User from using “Print Scrn” / “Printscreen” key of the Keyboard for any Web Page

I hate the “it’s not possible” sentence. Here’s all solutions combined to help you: 1- You can grab the solution from Haluk: <script type=”text/javascript”> $(document).ready(function() { $(window).keyup(function(e){ if(e.keyCode == 44){ $(“body”).hide(); } }); }); </script> HOWEVER, you hide body, but’s already “printed” to clipboard. You can fire another event that copy some text to your … Read more

Take screenshot of full page with Selenium Python with chromedriver

This answer improves upon prior answers by am05mhz and Javed Karim. It assumes headless mode, and that a window-size option was not initially set. Before calling this function, ensure the page has loaded fully or sufficiently. It attempts to set the width and height both to what is necessary. The screenshot of the entire page … Read more