--- id: lambdatest-selenium-driver version: "1.0.9" license: MIT license_treatment: permissive maintenance: active --- # lambdatest-selenium-driver — Python Selenium SDK for testing with Smart UI License: permissive · Maintenance: active · Downloads: 625.6K/mo ## What it is and what it does This package integrates Selenium-based tests with LambdaTest's SmartUI visual testing platform. It provides a single primary function, smartui_snapshot(), that captures screenshots from a running Selenium WebDriver instance and sends them to SmartUI for visual regression analysis. The package wraps Selenium and lambdatest-sdk-utils to handle the communication with LambdaTest's cloud infrastructure. Typical usage involves writing a standard Selenium test, calling smartui_snapshot() at points where you want visual validation, then running the test through the SmartUI CLI wrapper. The CLI orchestrates authentication, build creation, and result aggregation. This is useful for teams running cross-browser visual tests on LambdaTest's cloud grid, where you want to detect unintended visual changes across test runs without manually comparing screenshots. Use it for: - Capture visual baselines during initial test runs, then compare subsequent runs to detect unintended UI changes. - Validate responsive design across different browser and device combinations in a single test suite. - Integrate visual regression checks into CI/CD pipelines that already use LambdaTest for Selenium test execution. - Document expected UI state at specific test milestones for stakeholder review and approval. - Detect visual regressions introduced by CSS or layout changes without rewriting assertion logic. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Captures visual snapshots during Selenium tests and uploads them to LambdaTest's SmartUI service for visual regression testing and comparison. Yes, if you are already using LambdaTest for Selenium testing and need visual regression capabilities. The package is actively maintained, has no known vulnerabilities, and integrates cleanly with standard Selenium workflows. It requires external setup (SmartUI CLI and a LambdaTest account), so it is not suitable as a standalone visual testing tool, but for teams already invested in LambdaTest's infrastructure it adds significant value with minimal friction. ## Install pip install lambdatest-selenium-driver uv add lambdatest-selenium-driver poetry add lambdatest-selenium-driver ## Installing lambdatest-selenium-driver Before you install: Low friction installation with only two runtime dependencies (selenium and lambdatest-sdk-utils). Package is actively maintained with recent releases and no known vulnerabilities. License in practice: MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal restrictions. Quickstart: pip install lambdatest-selenium-driver from lambdatest_selenium_driver import smartui_snapshot from selenium import webdriver driver = webdriver.Chrome() driver.get('https://example.com') smartui_snapshot(driver, "snapshot_name") driver.close() Requires SmartUI CLI installed globally (npm install -g @lambdatest/smartui-cli) and a PROJECT_TOKEN environment variable set to authenticate with LambdaTest's SmartUI service. Verify before relying: - Whether the package works with Selenium 4.x and later versions, or if there are known compatibility constraints. - Performance impact of snapshot capture on test execution time. - Whether SmartUI CLI must be running as a separate process or if it integrates directly with the Python SDK. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 625.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags visual regression testing selenium, screenshot comparison automation, smartui python sdk, visual testing lambdatest, selenium snapshot capture, visual-regression, lambdatest-integration, selenium-extension [View on SkillFed](https://skillfed.io/packages/lambdatest-selenium-driver) · [View on PyPI](https://pypi.org/project/lambdatest-selenium-driver/)