close
Skip to content

rajan1981/percy-python-selenium

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Percy visual testing for Python Selenium

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 100.0%