Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →To screenshot an app protected by Microsoft Entra ID, first complete the app’s real sign-in flow in a browser, save the authenticated browser state with Playwright, then load that state into a fresh headless browser context before navigating to the protected page. A clean headless session generally cannot skip sign-in, and saved state can expire or be rejected by app or tenant policy.
Why headless Chrome needs an authenticated browser session
A protected web app typically redirects the browser to Microsoft Entra ID for sign-in, then returns it to the app after authentication and any required consent. A new headless browser context has no such signed-in session, so opening the protected URL alone will usually lead to a login or challenge page. Microsoft’s sample web app sign-in flow illustrates this browser redirect-and-return pattern.
For a screenshot of the rendered app, use a browser-based sign-in and preserve the resulting browser state. A device-code flow is different: it can authenticate a public client for browserless API access, but receiving a token does not itself create a signed-in Chrome page. Microsoft’s authentication code samples cover distinct browser and browserless scenarios.
Save a signed-in state with Playwright
Before you start
- Use an account and environment authorized for automated access.
- Install Playwright and its Chromium browser. For Node.js, the commands below use the Playwright package.
- Know the app’s sign-in URL, protected page URL, and a reliable app-specific signal that appears only after sign-in, such as a dashboard heading or account menu.
- Be ready to complete consent, MFA, or another challenge through the method approved for that account and tenant.
Install Playwright
npm install playwright
npx playwright install chromium
Run the interactive sign-in once and save state
Create save-auth.js. Replace the example URL and success selector with values for your app. This opens a visible Chromium window so you can complete the actual sign-in flow, including any required user interaction.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Repair Windows errors before they cause bigger problems3Fix the driver behind crashes, sound loss and screen glitches#1 Best Overall
- 【1080P 60FPS Video Capture Card】 This HDMI game capture card is based on USB3.0 high speed transmission port, input resolution up to 4K@30HZ, output resolution up to 2K@30Hz or 1920×1080@60Hz. Type c and USB interface can meet most of the devices in daily life. Easily meet the online capture, real-time recording, online meetings, live gaming and other functions, so you have a better visual enjoyment. Note: For capture use only; requires capture software to function and is not intended for direct screen casting to a monitor or TV
- 【Ultra Low Latency Screen Sharing】 HDMI capture card is made of good quality aluminum alloy with strong heat dissipation, allowing you to enjoy ultra low latency while live gaming or video recording or live streaming, avoiding blue screens and lag. This HDMI to USBC capture card supports easy recording of good quality audio or HD video and transferring it to your computer or streaming platform, allowing you to record 60 fps HD video directly on your hard drive and real-time preview
- 【Plug and Play, Easy to Carry】 This HDMI 1080P video capture card does not require any additional drivers or external power supply, just plug and play for fast capture. The capture card is small and lightweight, so you can put it in your bag for emergencies, making it very portable for outdoor live streaming. It's also a great way to share content in game recording, video conference, video recorder and online teaching
- 【Wide Compatibility USB Capture Card】 Easily streams to Facebook, Youtube or Twitch. With the connection, this HDMI to USB C/3.0 video capture devices can be working on several Operating Systems and various software: Windows 7/ 8/ 10, Mac OS or above, Linux, Android, Laptop, Xbox One, PS3/PS4/PS5, Camera, DVDs, Set Top Box, Webcame, DSLR, Switch/Switch 2, TV BOX, HDTV, Potplayer/VLC, ZOOM, OBS Studio etc.
- 【Package Content & Note】 1x HD Audio Capture Card , 1x USB 3.0 to USB C Adapter (A-side 3.0, B-side 2.0), 1x user manual. Please note that you need to restart the OBS Studio software after the audio setup is complete, otherwise it will result in no sound output. When using an adapter, if the device is recognized as USB 2.0, try using the other side with the USB-C port. Simply flip the capture card and reconnect it to be recognized as USB 3.0
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch({ headless: false });
const context = await browser.newContext();
const page = await context.newPage();
await page.goto('https://app.example.com', { waitUntil: 'domcontentloaded' });
console.log('Complete sign-in in the browser window.');
// Replace this with an element that confirms your app is authenticated.
await page.getByRole('heading', { name: 'Dashboard' }).waitFor({ timeout: 0 });
await context.storageState({ path: 'playwright/.auth/state.json' });
await browser.close();
})();
The indefinite wait lets you finish sign-in manually; the script continues only when the app-specific heading appears. If your app has a different authenticated landing page, use an appropriate locator or wait for a final app URL instead. Do not save state immediately after clicking a sign-in button: the app may still be completing redirects or rendering its signed-in view. Playwright documents saving and reusing authentication state in its authentication guide.
Capture the protected route in headless Chromium
Create capture.js and run it after saving state. The script creates a new context with the saved state, navigates to the protected page, verifies an authenticated-page signal, and writes a PNG screenshot.
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch({ headless: true });
const context = await browser.newContext({
storageState: 'playwright/.auth/state.json'
});
const page = await context.newPage();
await page.goto('https://app.example.com/reports', { waitUntil: 'domcontentloaded' });
await page.getByRole('heading', { name: 'Reports' }).waitFor({ timeout: 30000 });
await page.screenshot({ path: 'reports.png', fullPage: true });
await browser.close();
})();
Change the URL and heading to match your target. The authenticated-page check is important: without it, a screenshot can succeed technically while capturing a login screen, consent page, or error. Playwright’s authentication documentation explains context state reuse; its codegen guidance also describes preserving authenticated state.
Rank #2
- [Enhanced 4K-1080P Video Capture Experience] Capture the Magic: Elevate your video recordings to new heights with our upgraded anti-static 1080P Video Capture Card. Immerse yourself in stunning visuals, supporting HDMI input at 4K 60FPS and USB output for capturing in 1080P, complete with rich stereo sound. Enjoy crystal-clear video recordings, dynamic gaming live streams, and professional conference broadcasts. Note: HDMI resolution: Max input can be 3840×2160@30Hz / Video output resolution: Max output can be 1920×1080@30Hz
- [Seamless Real-Time Preview] Stay in the Moment: Our advanced ultra-low latency technology ensures seamless real-time transmission of video streams. Experience instant, lag-free previews, allowing you to capture every detail precisely. Effortlessly record video directly to your hard disk, all without compromising on quality or introducing any delays.
- [Versatility and Broad Compatibility] Your Creative Hub: Connect your DSLR, camcorder, or action camera to a wide range of operating systems, including Windows, MacOS, and Linux. Unlock a world of possibilities with real-time streaming to popular platforms like Twitch, Youtube, OBS, Zoom, Potplayer, and VLC, giving you the tools to share your content effortlessly.
- [Effortless Plug and Play] Simplicity Redefined: Say goodbye to complex installations. Our plug-and-play design eliminates the need for drivers or external power supplies. Seamlessly integrate high-definition acquisition into various scenarios, whether it's educational recordings, immersive gaming, precise medical imaging, captivating live streams, or professional broadcasting.
- [Seize Every Detail with Precision] Unleash your creativity and attention to detail with our video capture card. Capture every nuance, every color, and every moment with precision, thanks to the enhanced capabilities of our technology. Whether you're a content creator, a gamer, or a professional, our capture card empowers you to seize the finest elements and bring them to life in your recordings and live streams.
What Playwright state captures—and what it does not guarantee
Playwright storage state covers cookies and local storage; its relevant APIs and examples also support IndexedDB state. Apps may depend on session storage or other app-specific mechanisms, so validate that the saved state is sufficient for your target rather than assuming every app’s sign-in will persist from a default snapshot. Consult the authentication guide and state-preservation guidance for the exact API behavior.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →State is not a permanent credential. The app or identity provider may stop accepting it because it expired, the account or session changed, policy demands a fresh challenge, or the app uses storage not included in the state file. Re-run the approved interactive setup when that happens.
Handle Microsoft Entra MFA and Conditional Access correctly
Whether sign-in requires additional verification depends on the tenant’s policy and the user’s configured methods. Microsoft documents Conditional Access policies that can require MFA in selected scenarios, as well as security defaults for tenants that do not use Conditional Access. Authenticator passwordless sign-in can require the user to approve a request, including number matching and a device PIN or biometric. See Microsoft’s guidance on per-user MFA and passwordless Authenticator sign-in.
Rank #3
- 【4K HDMI Input, 2K@30Hz Recording】Powered by a true USB 3.0 high-speed interface, the capture card supports up to 4K@30Hz HDMI input and records at 2K@30Hz or 1080P@60Hz. Perfect for gamers, streamers, and professionals who need crisp, smooth video for live streaming, gameplay recording, or online meetings.
- 【Ultra Low Latency Screen Sharing】Built with a premium aluminum alloy shell and advanced chipset for stable heat dissipation, ensuring ultra-low latency transmission. Capture high-quality video and dual-channel audio in real time—no lag, no frame drop—ideal for Twitch, YouTube, or OBS streaming.
- 【Easy Plug and Play, Compact & Portable】No driver or external power required—just plug and play via USB 3.0 or Type-C connection to your Windows or macOS computer. Lightweight and compact design makes it easy to carry for outdoor streaming, live shows, or mobile recording setups.
- 【Wide Compatibility & Multi-Device Support】Compatible with Windows 7 8 10 11, macOS, Linux,Android and supports most popular software such as OBS, Zoom, VLC, Twitch Studio, and more. Works seamlessly with PS4, PS5, Xbox, Switch, DSLR cameras, TV boxes, and other HDMI-output devices for streaming to YouTube, Twitch, etc.
- 【What You Get】Includes: HDMI Capture Card, USB 3.0 to USB-C Adapter, User Manual. Tips: Make sure your tablet’s OTG function is enabled before connecting. Test your HDMI device with a monitor first to confirm video and audio output, then connect to the Video Capture Card for recording.
Do not treat headless automation as a way to bypass a user challenge. Complete required verification through an authorized supported method, or ask the tenant administrator about an approved test arrangement. Microsoft’s Playwright guide for Power Platform samples discusses headful local authentication and certificate-backed patterns for that sample context; it is not a universal recipe for every Entra-protected app, and it does not establish that a certificate is suitable for a particular user flow or removes Conditional Access requirements.
Protect the authentication state file
A state file can contain cookies or headers that could let someone impersonate the signed-in account. Playwright explicitly warns that saved authentication state is sensitive. Treat it like a credential:
- Keep it out of source control. Add the auth-state directory to
.gitignore. - Restrict filesystem and artifact access to the people and jobs that need it.
- Do not print its contents or secrets derived from it in logs.
- Use an approved test account with only the permissions the capture requires.
- Remove the state file when it is no longer needed, and refresh it through the authorized sign-in flow when it stops working.
See Playwright’s authentication guidance for its warning about protecting saved state.
Rank #4
- 【1080P HD High Quality】Capture resolution up to 1080p for video source and it is ideal for all HDMI devices such as PS4, PS3, Xbox One, Xbox 360, Wii U, DVDs, DSLR, Camera, Security Camera and set top box. Note: Video input supports 4K30/60Hz and 1080p120/144Hz. Does not support 4K120Hz/144Hz. Output supports up to 2K30Hz.
- 【Plug and Play】No driver or external power supply required, true PnP. Once plugged in, the device is identified automatically as a webcam. Detect input and adjust output automatically. Won't occupy CPU, optional audio capture. No freeze with correct setting.
- 【Compatible with Multiple Systems】suitable for Windows and Mac OS. High speed USB 3.0 technology and superior low latency technology makes it easier for you to transmit live streaming to Twitch, Youtube, Facebook, Twitter, OBS, Potplayer and VLC.
- 【HDMI LOOP-OUT】Based on the high-speed USB 3.0 technology, it can capture one single channel HD HDMI video signal. There is no delay when you are playing game live.
- 【Support Mic-in for Commentary】Rybozen capture card has microphone input and you can use it to add external commentary when playing a game. Please note: it only accepts 3.5mm TRS standard microphone headset.
Troubleshoot sign-in and screenshot failures
The screenshot contains the Microsoft login page
- Confirm the state was saved only after the app reached its authenticated view.
- Confirm the capture context loads the same state file and that the target URL follows the expected app domain and redirects.
- Check that the app still accepts the session; repeat interactive sign-in if it expired or a fresh challenge is required.
- Wait for an app-specific authenticated element before taking the screenshot.
The flow stops at MFA or passwordless approval
This is an interactive requirement determined by the configured sign-in methods and tenant policy. Complete the prompt through an authorized method or coordinate an approved test setup with the tenant administrator. Do not assume headless Chrome can approve it unattended.
The app redirects even though state was restored
Check the URL and redirect path, cookie domain scope, state-file freshness, and whether the app relies on storage beyond the saved state. A snapshot is not a guarantee that the app will accept a session indefinitely; use the app’s authenticated-page check to detect rejection before capture.
A device-code flow returns a token but no screenshot-ready page
That flow is for browserless client or API access. It does not render the target UI as a signed-in Chrome session. Use the app’s real browser sign-in and save that browser state instead.
Free tools Windows power users keep installed
One-click scans. No signup required.
Best Value
- AV TO USB Converter: Capture videos and audios from VHS, VCR, Hi8, DV tapes to a PC, with the help of our USB Video Converter. Save room while digitizing your favorite old memories
- Quality Capture Card: Our USB Video Capture Card converting anolog RCA composite input into HD 720P USB output and capturing audio without any sound card. Advanced signal processing technology provides you with great precision, colors, resolutions, and details.
- Plug and Play: Automatically install the driver once you hook up this RCA to USB Converter to a PC. No external power is needed. User-friendly and easy to operate
- Wide Compatibility: The Video Capture Card can work with video devices with RCA connector or S-Video connector, such as VHS, VCR, Hi8, camcorder, compatible with Windows and Mac OS. Support video formats like NTSC, PAL, and support brightness, contrast, hue, and saturation control
- Note: The Video Converter is used with acquisition software. We recommend OBS Studio or PotPlayer for Windows, and QuickTime Player for Mac. They can be downloaded for free online. Please operate according to the steps in User Manual or contact us if you have any questions
The page content differs from run to run
First verify that each run reaches the same authenticated route and waits for the same meaningful content to appear. Differences can also depend on the browser and operating environment; compare like with like rather than assuming a successful navigation guarantees identical rendering.
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server, but it does not replace Entra sign-in for a protected app: you still need a way to access the target page. For a public or otherwise accessible page, one GET request returns an image or PDF. The example below saves a WebP screenshot; see the ScreenshotNeo API documentation for request options.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
ScreenshotNeo removes cookie banners, newsletter popups, and chat widgets before capture; each cleanup step can be turned off. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed, and response headers report the page verdict and billing status. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots.
Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.
Frequently Asked Questions
Can headless Chrome handle Microsoft Entra MFA by itself?
Not reliably as an unattended substitute for the user. If the tenant or configured sign-in method requires approval or another interactive challenge, complete it through an authorized method or use an administrator-approved test arrangement.
Does Microsoft device code let me screenshot a signed-in web app?
Not by itself. Device-code authentication can obtain tokens for browserless client or API access, but a screenshot of the rendered app requires a browser session that has completed the app’s sign-in flow.
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.

