Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a custom dropdown rendered in the webpage, have the agent click its trigger, wait until the menu is visible, then take the screenshot before selecting an option. With Playwright, use page.screenshot() to include the surrounding page or locator.screenshot() to crop to the menu. A native HTML <select> is different: Playwright can select a value, but its documented selectOption() API does not promise to show the operating system’s expanded popup in an image.

Open a custom dropdown, then capture it

A custom dropdown is part of the webpage, so an automation agent can open it like a user and capture its rendered open state. Use a stable accessible role and name where possible; replace the example labels below with those used by the target page.

  1. Navigate to the page and locate the dropdown trigger.
  2. Click the trigger to open the menu.
  3. Wait for the menu or a representative option to become visible.
  4. Take the screenshot before clicking an option, which would change or close the open state.

Playwright documents page and element screenshots, along with waiting for locator states. See the Playwright screenshot documentation and Locator API documentation.

const trigger = page.getByRole('button', { name: 'Choose a category' });
await trigger.click();
await page.getByRole('listbox').waitFor({ state: 'visible' });
await page.screenshot({ path: 'open-menu.png' });

The example assumes the page exposes an accessible button named “Choose a category” and a visible listbox. If it uses different roles or labels, inspect the page and use the actual accessible name and role. Waiting for visible menu content is more reliable than taking the capture immediately after the click.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Logitech 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

Choose page context or a menu crop

Capture the viewport or full page

Use a page screenshot when the menu needs the surrounding interface for context. A viewport capture records the current visible browser area; a full-page screenshot extends the capture to the full scrollable page. For an open overlay, the viewport is often the more useful choice because it preserves the on-screen state without extending the image down the document.

await page.screenshot({ path: 'open-menu.png' });
// Or capture the full scrollable page:
await page.screenshot({ path: 'open-menu-full-page.png', fullPage: true });

Crop to the menu element

When only the menu is needed, take a locator screenshot. It is cropped to the matching element’s bounds. It will not show parts covered by another element, and for a scrollable element it captures only the portion currently scrolled into view.

Rank #2
Sale
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
  • 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.
const menu = page.getByRole('listbox');
await menu.waitFor({ state: 'visible' });
await menu.screenshot({ path: 'menu-crop.png' });

Native select controls need a different expectation

A native HTML <select> control is not the same as a custom menu. Playwright’s selectOption() sets a value by option value or label; it is intended to change the form state, not to open and photograph the browser or operating-system popup.

await page.getByLabel('Choose a color').selectOption({ label: 'Blue' });
await page.screenshot({ path: 'selected-value.png' });

This captures the page with “Blue” selected as rendered by the control. The reviewed Playwright API documentation does not establish that an expanded native popup will appear in a screenshot. If the visible expanded menu itself is essential, target a custom in-page dropdown or deliberately render an equivalent webpage element instead of relying on native popup UI.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
NexiGo N60 1080P Webcam with Microphone, Software Control & Privacy Cover, USB HD Computer Web Camera, Plug and Play, for Zoom/Skype/Teams, Conferencing and Video Calling
  • 【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.

Make captures consistent

  • Wait for a meaningful state: wait for the menu or an option to be visible rather than inserting an arbitrary delay. This reduces the chance of capturing before the menu opens.
  • Keep the menu open: do not select an option until after the screenshot.
  • Account for animation: transitions can make captures vary. The locator screenshot API has an animations option; check its behavior against the Playwright version installed in your project.
  • Choose the right scope: use a viewport capture for the visible page state and an element screenshot for a focused crop. Check whether overlays obscure the element or whether a scrollable menu shows only part of its contents.

Troubleshoot a missing or incomplete menu

The screenshot was taken before the menu opened

Wait for the actual menu or one of its options to reach the visible state before capturing. Confirm that the locator describes the element the page displays after the click.

The trigger or menu locator does not match

Use the page’s actual accessible role and name. A custom dropdown may expose a listbox, menu, or another role; do not assume every component uses listbox. Replace the illustrative selectors with the semantics and labels used by the target site.

Rank #4
Sale
EMEET C960 1080P Webcam with Microphone, 2 Mics, 90° FOV, Computer Camera
  • 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)

The menu is cut off or covered

A locator screenshot is limited to the matching element’s bounds and cannot reveal portions obscured by another element. Use a page screenshot if surrounding context matters, and check the menu’s scroll position if it is scrollable.

A native select popup is absent

That behavior is not promised by selectOption(). It selects the option and captures the rendered selected value; it does not document a way to hold the native popup open for a screenshot.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
  • 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
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

For a standard webpage screenshot, ScreenshotNeo offers a single GET request. Its clean-shot flow accepts cookie or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each cleanup step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers report the page verdict and billing status. Its MCP server includes take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients. These are webpage captures; use browser automation when you specifically need to click a dropdown and preserve its open state.

cURL example, with API details in the ScreenshotNeo documentation:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Python:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

ScreenshotNeo has a free plan with 1,000 screenshots per month and no card required; paid plans start at $5 for 3,000 shots. Sign up for free.

See ScreenshotNeo for the service and plan details.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

SaleBestseller No. 1
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Built-In Mic: The built-in microphone lets others hear you clearly during video calls
$24.99
SaleBestseller No. 2
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Compatible with Nintendo Switch 2’s new GameChat mode
$16.89
SaleBestseller No. 5
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Fully compatible with Windows 11
$54.99

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.