Skip to content

chore: refresh examples for sdk-python 5.0.0 - #5

Merged
pashidlos merged 1 commit into
masterfrom
chore/refresh-examples
Nov 2, 2026
Merged

pashidlos merged 1 commit into
masterfrom
chore/refresh-examples

Conversation

@pashidlos

Copy link
Copy Markdown
Member

Updates both examples to sdk-python 5.0.0, which works with server 6.0: older SDKs fail on the autoApproved status. Adds CI that runs them against a VRT 6.0 server.

  • Versions: visual-regression-tracker 5.0.0 from PyPI (Python 3.10 or later), Selenium 4.52 and Playwright 1.64. Versions are pinned so that Dependabot can bump them.
  • Selenium: no longer uses webdriver_manager. webdriver.Chrome(options=...) with Selenium Manager finds the driver. The old example called webdriver.Chrome(path), which Selenium 4.10+ rejects.
  • Headless: both examples run headless. Selenium uses --headless=new, and Playwright's launch is no longer headless=False.
  • Config: each example has a vrt.json.example with the defaults of a fresh install. Copy it to vrt.json, which is git-ignored, or set VRT_* variables.
  • Demo site: https://the-internet.herokuapp.com replaces python.org. The unused Config import and the None argument are removed.
  • CI: each example runs against VRT 6.0.0-rc1, which .github/vrt/docker-compose.yml starts, configured through VRT_* variables.
  • Dependabot: pip for both folders, docker-compose for the CI stack, and github-actions.

Verified: both examples ran locally against a throwaway api:6.0.0-rc1 stack, once through VRT_* variables and once through vrt.json.

🤖 Generated with Claude Code

- sdk-python 5.0.0 from PyPI, Selenium 4.52, Playwright 1.64, pinned
- Selenium Manager instead of webdriver_manager, headless browsers
- vrt.json.example in each example
- the-internet.herokuapp.com instead of python.org
- CI runs both examples against a VRT 6.0.0-rc1 stack; Dependabot config

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pashidlos
pashidlos merged commit c64e003 into master Nov 2, 2026
2 checks passed
@pashidlos
pashidlos deleted the chore/refresh-examples branch November 2, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant