Disabling Same-Origin Policy and Intercepting Requests with Puppeteer
Puppeteer is a robust Node.js library that provides high-level APIs for controlling Chrome or Chromium via the Chrome DevTools Protocol. Two powerful capabilities—circumventing same-origin restrictions and entercepting network requests—are essential for scenarios like local development against remote APIs and testing network behavior.
Bypassing ...
Posted on Wed, 19 Aug 2026 16:14:11 +0000 by Replika
Modern Web Page Screenshot Techniques Across Platforms and Tools
Native Windows Capture Methods
Windows includes built-in screenshot capabilities without requiring third-party software:
Ctrl + Shift + X: Opens the Snipping Tool for region-based capture.
Print Screen (PrtScn): Captures the entire screen to clipboard.
Alt + PrtScn: Captures only the active window.
SnippingTool.exe or Snip & Sketch: Launch ...
Posted on Tue, 18 Aug 2026 16:05:01 +0000 by eevan79
Randomly Launching a Web Browser with Python’s Webbrowser Module
The webbrowser module in Python provides a high‑level interface for opening URLs in a browser. While it defaults to the system’s preferred browser, you can register arbitrary executables and invoke them by name. This makes it possible to pick a browser at random from a predefined list.
Start by collecting absolute paths to browser executables. ...
Posted on Tue, 11 Aug 2026 16:59:40 +0000 by goldilok
Essential Selenium WebDriver Operations for Web Automation Testing
1) Getting Page Title
String pageTitle = browserDriver.getTitle();
2) Getting Curent URL
String currentUrl = browserDriver.getCurrentUrl();
Browser Window Management
1) Maximizing Browser Window
browserDriver.manage().window().maximize();
2) Setting Custom Browser Dimensions
browserDriver.manage().window().setSize(new Dimension(800, 600));
...
Posted on Fri, 12 Jun 2026 17:37:24 +0000 by messels