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

Because Selenium screenshots the browser as it is at that moment. If the page is waiting for a one-time password (OTP), the screenshot will show that checkpoint; taking a screenshot does not complete authentication or advance the login. Without the portal name and the script’s timing, the specific reason the checkpoint appeared cannot be determined.

What the screenshot tells you—and what it does not

Selenium’s WebDriver screenshot captures the current browsing context. It records the page state, not the outcome your script intended to reach. If the browser is still displaying an OTP prompt when the screenshot command runs, that is what the image records. Selenium’s screenshot documentation describes capturing the current window; the operation is not a login step.

An OTP prompt means the browser has reached an authentication checkpoint that has not yet been completed in the visible flow. It does not, on its own, reveal why this portal presented the checkpoint. The portal, account, session conditions, and exact script sequence are unspecified, so attributing the prompt to a particular policy or automation issue would be speculation.

Check the order and timing of the login steps

First inspect the run sequence: did the script submit the login form, then take the screenshot before the OTP step was completed? This is a troubleshooting inference to check, not a confirmed cause for an unspecified run.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Yubico - Security Key C NFC - Basic Compatibility - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key C NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key C NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key C NFC via USB-C and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.
  1. Submit the preceding login form using the portal’s authorized flow.
  2. Determine what the portal expects next. If it requires an OTP, complete that step through an authorized user or test process.
  3. Before capturing a success screenshot, wait for a condition that establishes the intended state—for example, a page element that is only present after successful authentication.
  4. If the OTP prompt remains, capture it as the actual state and inspect the page text and authorized test logs rather than treating the image as proof that login succeeded.

A fixed delay alone does not establish that authentication has finished: the browser may still be waiting at the OTP checkpoint after the delay. Prefer a condition tied to the expected page state.

Handle two-factor authentication through an authorized test setup

The Selenium project says that “Automating this seamlessly and consistently is a big challenge in Selenium” and advises against routine 2FA automation. Its suggested approaches are for systems and test environments your team controls; they are not permission to bypass another organization’s authentication. See Selenium’s two-factor authentication guidance.

Rank #2
Yubico - YubiKey 5C NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5C NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5C NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5C NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts
  • If OTP itself is in scope: use the portal’s authorized factor and test procedure, and verify the authenticated state before taking the success screenshot.
  • If OTP is not in scope and your team controls the system: ask the team for a dedicated test token, use designated test users, or configure 2FA for the test environment as Selenium describes.
  • If considering an IP exception: Selenium also lists exemptions for known test IPs. Treat this as a controlled security change, not a general workaround.
  • If the portal belongs to a third party: follow its approved login process. Do not try to skip or bypass its OTP or CAPTCHA.

Selenium 4’s browser-protocol authentication support, discussed in its authentication material, concerns basic- or digest-style authentication; it does not establish a way to skip an OTP page. See Selenium’s authentication discussion.

Do not assume every Indian portal uses the same OTP rules

OTP length, expiry, attempt limits, and resend behavior depend on the service and flow. For example, the Income Tax Department of India describes a six-digit OTP with a 15-minute validity period, three attempts, and a resend action for a particular notice-authentication procedure. Those details apply to that procedure only, not to Indian portals generally. See the Income Tax Department’s instructions.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Yubico - YubiKey 5 NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-A or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5 NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5 NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5 NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts

Or skip the browser setup

If you need a website screenshot rather than an authenticated Selenium workflow, ScreenshotNeo can return a screenshot from one GET request. It does not complete portal authentication: capture only pages you are authorized to access, and do not use it to bypass an OTP checkpoint.

For example, this cURL request captures a publicly accessible page:

Rank #4
Yubico - Security Key NFC - Basic Compatibility - Multi-Factor Authentication (MFA) Key, Connect via USB-A or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key NFC via USB-A and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request options. ScreenshotNeo removes cookie and consent banners, newsletter popups, and chat widgets before capture; each removal step can be turned off. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed. It also has an MCP server with screenshot and page-information tools for AI agents. The free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.

Sign up for ScreenshotNeo’s free plan.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What information would confirm a portal-specific cause?

To diagnose a particular run, you would need the portal name or URL, the authorized login steps, when the screenshot command runs, and the observed page text or authorized test logs. Without those details, the supported conclusion is narrower: Selenium captured the OTP state displayed in the browser at capture time.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
FIDO2 U2F Security Key Passkey Two-Factor Authentication (2FA) USB Key PIN+Touch (Non-Biometric) USB-A Type TrustKey T110
  • Security Key : Protect your online accounts against unauthorized access by using FIDO2 and U2F authentication with T110. It's the world's most protective security key that works with windows, Mac OS, Linux as well as Chrome, Firefox, Edge and many other major browsers.
  • Certified with the new FIDO2 standard, T110 provides the benefit of fast login and strong protection against phishing, account takeover as well as many other online attactks.
  • Works with : Bank of America, Github, Google, Microsoft, DUO, Twitter, Facebook, Dropbox, Apple, ebay, BINANCE, mor and more.
  • Fits USB-A port : Insert the T110 security key into the USB-A port of each service and log in conveniently with one touch
  • For the driver download and user guide, please visit TrustKey Solutions Home support page.

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.