Skip to main content

Installation

important

To run tests in Lila, you will need to create a free account in https://app.lila.dev

Installing CLI

This step requires python>=3.11

pip install lilacli

The CLI is open source: Github repo

You can find the latest package in Pypi

tip

We recommend installing Lila globally to enable its CLI in all your bash sessions.

Verify installation

lila --help

This should display the help message for the CLI.

Install playwright drivers

Playwright is a requirement to run your tests cases, as the browser will run locally.

# Support for all browsers (chromium, firefox, webkit)
playwright install

# Just chromium
playwright install chromium
tip

You can configure Lila also to run in a remote browser in case you use browser infrastructure like Browserstack or Saucelabs. If this is the case you don't need to install the web drivers.

Verify ability to run

Fetch your default API key from the Lila app: https://app.lila.dev/api-keys and run

LILA_API_KEY=<api-key> lila check

You are all set!