Free tools Windows power users keep installed
One-click scans. No signup required.
iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Use browser automation to open the starting URL, let navigation follow redirects, record the final browser address, check the response status, and then capture the page. With Playwright, the basic sequence is page.goto(), page.url(), and page.screenshot(). One important distinction: the final address reached after redirects is not necessarily the page’s declared SEO canonical URL.
What “canonical URL” means here
The phrase can refer to two different URLs:
- Final browser URL: the address the browser reaches after following navigation redirects. Use this meaning when you want a screenshot of the destination a visitor reaches.
- Declared SEO canonical URL: a URL identified separately in the page’s HTML, commonly through a canonical link element. A redirect chain alone does not tell you what the page declares as canonical.
The workflow below captures the page reached by browser navigation. If you need the declared canonical target instead, inspect that document field separately and decide whether to capture the visited destination or open the declared target as a separate navigation.
Capture the page reached after redirects with Playwright
Install Playwright and its browser for your project, then run a script like this. Replace the example URL with the starting URL, including its https:// or http:// scheme.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →const { chromium } = require('playwright');
(async () => {
const startUrl = 'https://example.com';
const browser = await chromium.launch();
const page = await browser.newPage({ viewport: { width: 1280, height: 800 } });
try {
const response = await page.goto(startUrl, { waitUntil: 'domcontentloaded' });
const finalUrl = page.url();
const status = response?.status() ?? null;
console.log({ startUrl, finalUrl, status });
if (status === null || status >= 400) {
throw new Error(`Navigation did not return a successful HTTP response: ${status}`);
}
await page.screenshot({ path: 'page.png', fullPage: true });
} finally {
await browser.close();
}
})();
page.goto() returns the main-resource response for the first non-redirect response in the navigation chain. A navigation may complete and still return an HTTP error status such as 404 or 500, so inspect the status instead of assuming that a resolved navigation means the page succeeded. See the Playwright Page API documentation.
#1 Best Overall
- CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
- INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
- THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
- WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
- A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents
Choose when the page is ready
The example waits for domcontentloaded, which is a practical starting point, not a guarantee that every page’s content is ready. For client-rendered or data-driven pages, wait for a page-specific signal before capturing, such as a selector that appears when the relevant content is rendered:
await page.goto(startUrl, { waitUntil: 'domcontentloaded' });
await page.locator('[data-page-ready="true"]').waitFor();
await page.screenshot({ path: 'page.png', fullPage: true });
Replace the selector with one that actually indicates readiness for the page you are capturing. Playwright’s Page API discourages treating networkidle as a universal readiness rule; pages may continue making background requests after their main content is usable.
Choose viewport or full-page capture
With fullPage: true, Playwright captures the full scrollable page. Omit that option to capture the current viewport. Set the viewport when creating the page if the screenshot must use a reproducible width and height. Playwright’s screenshot API also supports an output path and image type; consult its Page API for the available options.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteRank #2
- CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
- 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
- SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
- INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
- THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
Inspect the redirect chain when you need it
page.url() gives you the final browser address, but not the full sequence of redirects. Playwright links the request objects in a redirect chain through redirectedFrom() and redirectedTo(). You can walk backward from the navigation response’s request:
const response = await page.goto(startUrl);
const finalUrl = page.url();
const chain = [];
let request = response?.request() ?? null;
while (request) {
chain.unshift({ url: request.url(), method: request.method() });
request = request.redirectedFrom();
}
console.log({ startUrl, finalUrl, chain, status: response?.status() });
The chain represents the requests Playwright exposes for that navigation. The Request API documents the redirect links, and the Network documentation describes how to trace back from the last request in a chain.
Check the declared SEO canonical separately
If your goal is specifically to find the page’s declared canonical URL, inspect the loaded document rather than inferring it from redirects. For example, after navigation you can read a canonical link element:
Rank #3
- Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
- Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
- Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
- In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
- Ultra-thin bezels: Maximize your viewing experience with thin bezels.
const declaredCanonical = await page.locator('link[rel="canonical"]').first().getAttribute('href');
console.log({ declaredCanonical });
This reads the element’s href if one is present; it does not establish that the destination is reachable or that it is the URL you should screenshot. If you want an image of the declared target, navigate to that target as a separate step and apply the same status, readiness, and capture checks. Playwright’s redirect documentation describes browser navigation and request history, not the rules for choosing an SEO canonical URL.
Recommended Free Tools
Make captures reproducible
For screenshots used in debugging, reporting, or comparison, save a small record alongside the image so you can identify what was captured later:
- Starting URL and final browser URL
- Navigation status and capture timestamp
- Browser and Playwright versions
- Viewport dimensions and whether the image is full-page
- Any page-specific readiness condition used
This is operational recordkeeping: the exact rendering can vary with browser version, viewport, page state, and changing site content.
Rank #4
- CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
- SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
- MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
- KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
- INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient
Troubleshooting
The navigation throws or times out
Confirm that the URL includes a scheme, the host is reachable, and the browser can connect without an SSL or network error. Increase the navigation timeout only when the page reasonably needs longer; a longer timeout does not fix an unreachable host or a page that never reaches the chosen condition.
The script finishes but the screenshot shows an error page
Inspect the response status. Playwright does not throw merely because the server returned an HTTP error status, including 404 or 500. Decide whether to keep the error-page screenshot for diagnosis or treat that status as a failed capture.
The screenshot is blank or missing dynamic content
Wait for a meaningful application-specific selector or state before calling screenshot(). Do not assume that a generic network-idle condition means the visible content is ready.
Best Value
- 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
- 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
- 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.
The screenshot is of the wrong URL
Log page.url() after goto(). If the requirement is to capture a declared SEO canonical rather than the redirect destination, inspect the canonical link and explicitly navigate to its target when appropriate.
The image cuts off the page
Use fullPage: true for the full scrollable page. If the intended artifact is a viewport screenshot, leave it off and set the viewport dimensions to the desired values.
Or skip the browser setup
ScreenshotNeo can capture a page with one GET request. Cookie banners are accepted and removed before the shot, along with known newsletter popups and chat widgets; those cleanup steps can be turned off. Responses identify page verdict and billing status, and bot checks, blank pages, timeouts, failed loads, and cache hits are not billed. Its MCP server provides screenshot tools for AI agents, and the API supports image or PDF output. Use the returned final-page information to check what was captured; a redirect destination should not be mistaken for an SEO canonical declaration.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errorscurl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
See the ScreenshotNeo documentation for API options. The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots. Sign up for 1,000 free screenshots a month, with no card required.
Frequently Asked Questions
Does a redirect prove that the destination is the SEO canonical URL?
No. The final browser URL records where navigation ended; the declared canonical must be inspected separately in the document.
Does Playwright throw when a page returns HTTP 404 or 500?
Not solely because of that status. Check the response returned by page.goto() and handle its status explicitly.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

