The `core-universal` package is part of the Applitools Eyes SDK ecosystem, serving as the Python client for the Eyes Core SDK Server. It provides the underlying communication protocol (using WebSockets) for Python SDKs (like `eyes-selenium`, `eyes-playwright`, `eyes-appium`) to interact with the Applitools Eyes service, where core functionality is implemented in JavaScript. End-users typically interact with higher-level Applitools SDKs rather than directly with `core-universal`. The current version is 4.16.5. Applitools SDKs are actively maintained with frequent releases.
pip install core-universalVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates a basic visual test using `applitools.selenium`, which is a common way to interact with Applitools Eyes functionality. It initializes a Selenium WebDriver, opens an Applitools Eyes test, performs visual checkpoints on different pages, and then closes the test. Remember to set the `APPLITOOLS_API_KEY` environment variable.
Use a specialized Applitools SDK (e.g., `applitools-eyes-selenium`, `applitools-eyes-playwright`) that wraps `core-universal` for end-to-end visual testing.
Upgrade your Python environment to version 3.10 or higher. Python 3.7 and 3.8 are End-of-Life (EOL).
Ensure the `APPLITOOLS_API_KEY` environment variable is correctly set with your valid Applitools API key before running tests. Alternatively, set it programmatically using `eyes.api_key = 'YOUR_API_KEY'`.
Initialize mutable default arguments inside the function if a fresh object is needed for each call, typically by using `None` as the default and checking for it: `def func(arg=None): if arg is None: arg = []`.