</>

Technology

Selenium

Difficulty

Beginner

Interview Question

What are scenarios we cannot automate using Selenium WebDriver?

Selenium cannot automate: CAPTCHA, barcode reading, Windows OS native dialogs, bitmap/image comparison, third-party calendars, PDF/Word processing, and biometric authentication.

Answer

Scenarios We Cannot Automate Using Selenium WebDriver

Selenium WebDriver is a browser automation tool with inherent limitations. These scenarios are not automatable with Selenium alone:

1. CAPTCHA (Completely Automated Public Turing test) CAPTCHAs are specifically designed to prevent automation.

  • Image recognition challenges
  • reCAPTCHA v2 (click "I''m not a robot")
  • Text-based CAPTCHA
  • Workaround: Disable CAPTCHA in test environments, or use CAPTCHA-solving services (anti-captcha.com) — not for production
2. Barcode Reading
CODE
Selenium cannot decode barcodes or QR codes from images.
Workaround: Use Zxing library (Java) to decode barcodes separately from image files.

3. Bitmap/Image Comparison Selenium cannot compare pixel-level visual differences.

  • Workaround: Use Applitools Eyes, Percy, or ImageMagick alongside Selenium

4. Windows OS-Level Native Pop-ups File download dialogs, Windows Security prompts, OS-level authentication dialogs.

  • Workaround: AutoIT, Sikuli, Robot class (Java), or browser profile pre-configuration

5. Third-Party Calendar/Date Picker Widgets Flash-based or external calendar widgets embedded via iframe or plugin.

  • Workaround: Use JavascriptExecutor to set date values directly

6. Image and Word/PDF Documents Reading content from images, Word documents, or PDF files embedded on a page.

  • Workaround: Apache POI (Word/Excel), PDFBox (PDF), Tesseract OCR (images)

7. Biometric Authentication Fingerprint, face recognition, Touch ID — hardware-dependent.

8. Flash/Silverlight Content Flash is deprecated and cannot be interacted with via Selenium.

Complete list:

ScenarioLimitationWorkaround
CAPTCHADesigned to block botsDisable in test env
Barcode/QRImage contentZxing library
Image comparisonPixel-levelApplitools, Percy
Windows native dialogsOS-level, not browserAutoIT, Sikuli
PDF/Word contentNot HTMLPDFBox, Apache POI
Flash contentDeprecatedN/A
BiometricHardwareN/A

Key answer: Selenium cannot automate Barcode Reader, CAPTCHA, image comparison (bitmap), Windows OS pop-ups, third-party calendar elements, image/Word/PDF processing.

Follow AutomateQA

Related Topics