Quick start
Yet another selenium wd wrapper
1. Requirements
python >= 3.6
pyenv is recommended (pyenv & pyenv virtualenv plugin)
Docker & image selenoid/vnc_chrome:##.# (https://hub.docker.com/r/selenoid/vnc_chrome)
Or selenium-server
2. Install
Build from source:
$ git clone git@github.com:Aurococcus/wasd.git
$ cd wasd
$ pip install .From pypi:
$ pip install wasd3. Setup
$ mkdir my_project && cd my_project
# activate venv e.g. $ pyenv local my_venv
$ pip install wasd
$ wasd scaffold
$ invoke selenoid.up # if using Selenoid
$ pytest testsThis creates configuration file _wasd_settings.yml, basic project structure and sample test.
4. Configure
5. Write a test
Create file tests/test_foo.py:
6. Run
Use pytest for running tests:
Add --steps option for verbose log.

7. CLI options
$ pytest --env=<env> - run tests with settings file <env>.yml from _env dir
$ pytest --listener - highlight found element during runtime
$ pytest --save-screenshot - save screenshot on failure in _output dir
$ pytest --steps - enable verbose log
Last updated