Use these commands to install Python packages and Playwright browser binaries through TestEng Mirror.
Install pinned packages from the TestEng PyPI simple mirror.
# Python packages pip install --index-url https://mirror.testeng.ir/pypi/simple/ \ --trusted-host mirror.testeng.ir \ robotframework-browser==19.12.5
pip install --index-url https://mirror.testeng.ir/pypi/simple/ \ --trusted-host mirror.testeng.ir \ -r requirements.txt
Set the Playwright download host before installing browser binaries.
export PLAYWRIGHT_DOWNLOAD_HOST=https://mirror.testeng.ir/playwright python -m Browser.entry install --with-deps
$env:PLAYWRIGHT_DOWNLOAD_HOST="https://mirror.testeng.ir/playwright"
python -m Browser.entry install --with-deps
Example variables and install steps for CI pipelines.
variables:
PLAYWRIGHT_DOWNLOAD_HOST: "https://mirror.testeng.ir/playwright"
PIP_INDEX_URL: "https://mirror.testeng.ir/pypi/simple/"
PIP_TRUSTED_HOST: "mirror.testeng.ir"
test:
script:
- pip install robotframework-browser==19.12.5
- python -m Browser.entry install --with-deps
- robot tests/