https://github.com/rudeigerc/elearning-test
https://github.com/rudeigerc/elearning-test
pytest selenium
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rudeigerc/elearning-test
- Owner: rudeigerc
- Created: 2018-05-24T12:23:34.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-26T09:57:11.000Z (about 8 years ago)
- Last Synced: 2025-12-31T11:54:59.820Z (6 months ago)
- Topics: pytest, selenium
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# elearning-test
## Build
### Install Chrome Driver
#### macOS
```shell
$ brew cask install chromedriver
```
#### Windows
Visit [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/) for more information.
### Install `selenium` and `pytest`
```shell
$ pip install selenium
$ pip install pytest
$ pip install pytest-selenium
```
## Config
See `conftest.py` and `pytest.ini`.
- username
- password
- file_path
## Run
```shell
$ pytest --driver Chrome
```
## Generate Report
Visit [pytest-html](https://github.com/pytest-dev/pytest-html) for more information.
```shell
$ pytest --driver Chrome --html=report.html
```
## Docs
- [selenium](https://seleniumhq.github.io/selenium/docs/api/py/index.html)
- [pytest](https://docs.pytest.org/en/latest/contents.html)
- [pytest-selenium](http://pytest-selenium.readthedocs.io/en/latest/index.html)