Use Playwright with your organization’s approved proxy settings, then save a viewport, full-page, or element screenshot. You’ll need the proxy address and protocol, any required credentials, and any certificate or browser-policy guidance from your IT team; those details are specific to your organization.
What you need before you start
- The proxy server address and permitted protocol, such as HTTP(S) or SOCKSv5.
- Proxy credentials, if authentication is required. These are distinct from a username and password for the website itself.
- Any organization-specific certificate instructions, such as whether an approved certificate authority must be trusted.
- An approved Playwright browser setup. Enterprise policies may limit automation or proxy behavior in managed Chrome and Edge.
Playwright’s network documentation says: “Proxy can be either set globally for the entire browser, or for each browser context individually.” See Playwright network configuration for the current options. Ask IT or your browser administrator for the actual endpoint, credentials, and applicable policies; the documentation cannot provide organization-specific values.
Configure the proxy and capture a screenshot
The example below uses JavaScript with Playwright’s Chromium browser. Replace the example proxy and target URL with values approved for your environment. Keep credentials out of source control; supply them through your organization’s approved secret-management method.
Install Playwright
-
In a new project, install the Playwright package:
npm install playwright -
Install its Chromium browser if it is not already available:
Recommended Free Tools
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.#1 Best Overall
SaleLogitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black- Compatible with Nintendo Switch 2’s new GameChat mode
- Auto-Light Balance: RightLight boosts brightness by up to 50%, reducing shadows so you look your best—compared to previous-generation Logitech webcams (1)
- Privacy with a Slide: The integrated webcam cover makes it easy to get total, reliable privacy when you're not on a video call
- Built-In Mic: The built-in microphone lets others hear you clearly during video calls
- Easy Plug-And-Play: The Brio 101 works with most video calling platforms, including Microsoft Teams, Zoom and Google Meet—no hassle; it just works
npx playwright install chromium
If browser installation is blocked by the proxy, follow the browser-download guidance below before retrying.
Save a viewport, full page, or element
Save this as screenshot.js. The example configures an HTTP proxy at browser launch and saves a full-page PNG. Remove the authentication fields if the proxy does not require them.
const { chromium } = require('playwright');
async function main() {
const browser = await chromium.launch({
proxy: {
server: 'http://proxy.example.com:8080',
username: process.env.PROXY_USERNAME,
password: process.env.PROXY_PASSWORD
}
});
try {
const page = await browser.newPage();
await page.goto('https://example.com', { waitUntil: 'networkidle', timeout: 60000 });
await page.screenshot({ path: 'screenshot.png', fullPage: true });
Rank #2
- Compatible with Nintendo Switch 2’s new GameChat mode
- Crisp HD 720p/30 fps video calls with diagonal 55° field of view and auto light correction. Compatible with popular platforms including Skype and Zoom.
- The built-in noise-reducing mic makes sure your voice comes across clearly up to 1.5 meters away, even if you’re in busy surroundings.
- C270’s RightLight 2 feature adjusts to lighting conditions, producing brighter, contrasted images to help you look good in all your conference calls.
- The adjustable universal clip lets you attach the camera securely to your screen or laptop, or fold the clip and set the webcam on a shelf. You’re always ready for your next video call.
} finally {
await browser.close();
}
}
main().catch(error => { console.error(error); process.exitCode = 1; });
Run it with node screenshot.js, setting PROXY_USERNAME and PROXY_PASSWORD in your environment if required. Replace fullPage: true with fullPage: false or omit it to capture the current viewport. To capture one component, use a locator instead of the page:
await page.locator('.product-card').screenshot({ path: 'element.png' });
The selector must match an element present on the page. Playwright’s screenshot API documents viewport, full-page, and locator screenshots at Playwright screenshots.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Rank #3
- 【Full HD 1080P Webcam】Powered by a 1080p FHD two-MP CMOS, the NexiGo N60 Webcam produces exceptionally sharp and clear videos at resolutions up to 1920 x 1080 with 30fps. The 3.6mm glass lens provides a crisp image at fixed distances and is optimized between 19.6 inches to 13 feet, making it ideal for almost any indoor use.
- 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 8, 10 & 11 / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
- 【Built-in Noise-Cancelling Microphone】The built-in noise-canceling microphone reduces ambient noise to enhance the sound quality of your video. Great for Zoom / Facetime / Video Calling / OBS / Twitch / Facebook / YouTube / Conferencing / Gaming / Streaming / Recording / Online School.
- 【USB Webcam with Privacy Protection Cover】The privacy cover blocks the lens when the webcam is not in use. It's perfect to help provide security and peace of mind to anyone, from individuals to large companies. 【Note:】Please contact our support for firmware update if you have noticed any audio delays.
- 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 10 & 11, Pro / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
Set the proxy per browser context
If only one context should use the proxy, create the browser without a launch-level proxy and configure the context:
const browser = await chromium.launch();
const context = await browser.newContext({
proxy: { server: 'http://proxy.example.com:8080' }
});
const page = await context.newPage();
For authenticated proxies, add the appropriate username and password fields to the proxy object. Playwright documents HTTP(S) and SOCKSv5 proxy settings; confirm the scheme and authentication requirements with IT rather than guessing. Proxy authentication does not log you in to the destination site.
Choose the screenshot scope
| Capture | How | Use it for |
|---|---|---|
| Viewport | await page.screenshot({ path: 'viewport.png' }); |
A quick check of the content currently visible in the browser. |
| Full page | await page.screenshot({ path: 'full.png', fullPage: true }); |
A record of the full scrollable document. |
| Element | await page.locator('YOUR_SELECTOR').screenshot({ path: 'element.png' }); |
Focused documentation of one component or region. |
For pages that load content as you scroll, a full-page screenshot may not include content that has not yet loaded. If necessary, scroll the page or wait for the relevant content before capturing it, then verify the output.
If browser installation fails behind the proxy
Playwright’s browser installation guide documents routing downloads through a proxy with HTTPS_PROXY. Set it in the shell before installing browsers, using the address your organization supplies:
Rank #4
- 1080P Webcam with Cover for Video Calls - EMEET computer webcam provides design and Optimization for professional video streaming. Realistic 1920 x 1080p video, 5-layer anti-glare lens, providing smooth video. C960 computer camera delivers 1920x1080 video with fixed focus (11.8–118.1 inches), so as to provide a clearer image. C960 USB webcam has a cover and can be removed automatically to meet your needs for privacy. For optimal image performance, use the webcam in a well-lit environment.
- Built-in 2 Omnidirectional Mics - EMEET webcam with microphone for desktop features 2 built-in omnidirectional microphones, picking up your voice to create clear audio for communication. When installing the webcam, select EMEET C960 as the default microphone input device in your computer and video applications and select C960 as the default device in Zoom/Teams and ensure microphone permissions are enabled for proper use. Please note that C960 does not include built-in speakers.
- Automatic Light Adjustment - Automatic exposure adjustment is applied in EMEET HD webcam 1080p so that the streaming webcam can deliver stable image performance. EMEET C960 camera for computer also features color adjustment and exposure optimization to help you look your best. For optimal video quality, it is recommended to use the webcam in normal or well-lit environments and select suitable video settings in your application. Proper lighting helps achieve a clearer and more balanced image.
- Plug-and-Play & Upgraded USB Connectivity - New C960 webcam features both USB Type-A & A-to-C adapter connections for wider compatibility. For stable performance, connect the webcam directly to the computer's main USB port and ensure the device is recognized correctly. If a hub or docking station is used, please ensure it provides sufficient power and stable data transmission, as limited ports may affect performance. 90° wide-angle lens captures more participants without frequent adjustments.
- High Compatibility & Multi Application - C960 webcam for laptop is compatible with Windows 10/11, macOS 10.14+, and Android TV 7.0+. Not supported: Windows Hello, TVs, tablets, or game consoles. It works with Zoom, Teams, Facetime, Google Meet, YouTube and more. Please select C960 webcam as the default camera and microphone device in your application and ensure camera/microphone permissions are enabled, especially on macOS. (Tips: Incompatible with Windows Hello)
HTTPS_PROXY=http://proxy.example.com:8080 npx playwright install chromium
If your shell or proxy setup requires a different syntax, follow your organization’s instructions. For a proxy that intercepts TLS and presents certificates from a custom certificate authority, Playwright documents NODE_EXTRA_CA_CERTS for trusting the required root certificate during browser downloads. The guide also documents PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT for increasing the download connection timeout when archive connections are slow. Consult Playwright browser installation for the current details. These settings address browser downloads; they do not replace approved proxy configuration or certificate trust for your organization.
Managed Chrome and Edge considerations
Playwright cautions that enterprise policies can affect its ability to launch and control Google Chrome and Microsoft Edge, and those browsers honor policies that may constrain automation or proxy settings. If a managed browser refuses to launch or behaves differently from the expected setup, ask your administrator whether automation is permitted and which browser channel is approved. Do not assume that Playwright can override company policy. See Playwright’s browser documentation.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Troubleshooting
The page cannot connect or the proxy rejects the request
- Check the proxy host, port, and protocol against the values supplied by IT.
- Confirm whether the endpoint requires authentication and that the configured username and password are proxy credentials.
- Ask whether the destination must be allowlisted or whether the proxy requires a specific connection method.
Navigation fails with a certificate error
Ask IT whether the proxy intercepts TLS and which approved certificate authority must be trusted. Do not disable certificate validation as a workaround. The NODE_EXTRA_CA_CERTS setting in Playwright’s browser guide concerns browser downloads; follow your organization’s guidance for the browser session itself.
Best Value
- Compatible with Nintendo Switch 2’s new GameChat mode
- HD lighting adjustment and autofocus: The Logitech webcam automatically fine-tunes the lighting, producing bright, razor-sharp images even in low-light settings. This makes it a great webcam for streaming and an ideal web camera for laptop use
- Advanced capture software: Easily create and share video content with this Logitech camera that is suitable for use as a desktop computer camera or a monitor webcam
- Stereo audio with dual mics: Capture natural sound during calls and recorded videos with this 1080p webcam, great as a video conference camera or a computer webcam
- Full HD 1080p video calling and recording at 30 fps. You'll make a strong impression with this PC webcam that features crisp, clearly detailed, and vibrantly colored video
Playwright cannot install its browser
Set HTTPS_PROXY before the install command. If the connection is slow, use the documented PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT setting. If a custom CA causes a self-signed certificate chain error, consult IT about the correct root certificate and Playwright’s NODE_EXTRA_CA_CERTS download guidance.
Managed Chrome or Edge will not launch or is missing expected behavior
Enterprise policy may restrict automation, browser control, or proxy settings. Confirm which browser channel is approved and whether an administrator must change a policy; switching to another browser should also comply with company requirements.
The image is blank or missing content
First verify that the page loaded successfully in the configured browser context. If content appears only after scrolling or waiting for a page element, wait for it or trigger the needed scroll before taking the screenshot. Choose viewport, full-page, or locator capture according to the content you need to document.
Or skip the browser setup
If you have permission to send the target URL to an external screenshot service, ScreenshotNeo offers a one-request screenshot API and an MCP server for AI agents. The API can accept an access key and URL and return an image or PDF. See the ScreenshotNeo documentation.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Quick Recap
ScreenshotNeo removes cookie banners, popups, and chat widgets before the shot; bot checks, blank pages, and failed loads are never billed. Its MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card, and paid plans start at $5 for 3,000 screenshots. Do not send a URL to an external service if your organization’s security rules prohibit it. Sign up for the free plan.
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.

