Skip to content
Percy visual testing for Python Selenium
Python
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
percy
tests
.gitignore
LICENSE
README.md
RELEASING.md
package.json
requirements.txt
setup.py
yarn.lock

README.md

percy-python-selenium

CircleCI

Percy visual testing for Python Selenium.

Quick start

  • Install @percy/agent from NPM: npm i -D @percy/agent
  • Install the Python SDK: pip install percy-python-selenium
  • Import percySnapshot in your test file: from percy import percySnapshot
  • Add a percySnapshot call to your test:
from percy import percySnapshot

browser = webdriver.Firefox()
browser.get('http://example.com')
​
# take a snapshot
percySnapshot(browser=browser, name='Home page')
  • Set your PERCY_TOKEN in the current env (you can get this in your Percy project settings)
  • Run your tests with percy exec -- [test command]: npx percy exec -- python ./tests.py (or yarn percy exec -- python ./tests.py)
You can’t perform that action at this time.