Skip to main content
SeleniumDecoded
All Chapters Chapter 11

Specialized Testing

Accessibility, visual regression, performance metrics, mobile emulation, API-assisted UI tests, and desktop apps with Electron

  1. 1

    Accessibility Testing with Selenium and axe-core

    Automate accessibility checks in Selenium with axe-core in Java, Python, JavaScript and C#, fail builds by impact level, and test keyboard focus order.

    Selenium 4 Stable
  2. 2

    Visual Regression Testing with Selenium

    Catch layout regressions with Selenium screenshots: element captures, masking dynamic content, stable rendering, pixel diffs, Applitools, Percy, CI baselines.

    Selenium 4 Medium
  3. 3

    Measuring Front-End Performance with Selenium

    Collect Navigation Timing, paint and LCP metrics with Selenium, throttle Chromium networks, run Lighthouse alongside tests, and assert performance budgets.

    Selenium 4 Medium
  4. 4

    Mobile Emulation and Responsive Testing

    Test responsive layouts with Selenium: Chrome mobile emulation, breakpoint sizes, touch gestures, BiDi viewports, and when to use real devices via Appium.

    Selenium 4 Medium
  5. 5

    API-Assisted UI Tests: Faster, Stabler Selenium

    Speed up Selenium suites by logging in via API, injecting cookies and tokens, seeding test data over HTTP, and checking the UI against the API responses.

    Selenium 4 Stable
  6. 6

    Testing Electron and Desktop Apps

    Automate Electron apps with Selenium: Java ElectronDriver, ChromeOptions binary plus matching chromedriver, window handling, and Appium for native Windows apps.

    Selenium 4 Medium
  7. 7

    Testing Geolocation, Timezone and Locale

    Test location, timezone and language features in Selenium: geolocation overrides, permissions, Accept-Language prefs, and timezone via CDP, BiDi and TZ.

    Selenium 4 Medium