Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/applitools/example-selenium-python-pytest
Applitools Example: Selenium in Python with pytest
https://github.com/applitools/example-selenium-python-pytest
applitools applitools-example applitools-eyes applitools-tutorial execution-cloud pytest python selenium selenium-webdriver test-automation tutorial ultrafast-grid visual-testing
Last synced: about 4 hours ago
JSON representation
Applitools Example: Selenium in Python with pytest
- Host: GitHub
- URL: https://github.com/applitools/example-selenium-python-pytest
- Owner: applitools
- License: apache-2.0
- Created: 2019-04-30T21:26:10.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-12T01:14:14.000Z (over 1 year ago)
- Last Synced: 2024-04-14T04:52:37.735Z (7 months ago)
- Topics: applitools, applitools-example, applitools-eyes, applitools-tutorial, execution-cloud, pytest, python, selenium, selenium-webdriver, test-automation, tutorial, ultrafast-grid, visual-testing
- Language: Python
- Homepage: https://applitools.com/tutorials/quickstart/web/selenium/python
- Size: 64.5 KB
- Stars: 2
- Watchers: 8
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Applitools Example: Selenium in Python with pytest
This is the example project for the [Selenium Python pytest tutorial](https://applitools.com/tutorials/quickstart/web/selenium/python).
It shows how to start automating visual tests
with [Applitools Eyes](https://applitools.com/platform/eyes/)
and [Selenium WebDriver](https://www.selenium.dev/) in Python.It uses:
* [Python](https://www.python.org/) as the programming language
* [Selenium WebDriver](https://www.selenium.dev/) for browser automation
* [pytest](https://docs.pytest.org/) as the core test framework
* [Google Chrome](https://www.google.com/chrome/downloads/) as the local browser for testing
* [pip](https://packaging.python.org/en/latest/tutorials/installing-packages/) for dependency management
* [Applitools Eyes](https://applitools.com/platform/eyes/) for visual testingIt can also run tests with:
* [Applitools Ultrafast Grid](https://applitools.com/platform/ultrafast-grid/) for cross-browser execution
* [Applitools Execution Cloud](https://applitools.com/platform/execution-cloud/) for self-healing remote WebDriver sessionsTo run this example project, you'll need:
1. An [Applitools account](https://auth.applitools.com/users/register), which you can register for free
2. A recent version of [Python 3](https://www.python.org/)
3. A good Python editor like [Visual Studio Code](https://code.visualstudio.com/docs/languages/python)
or [PyCharm](https://www.jetbrains.com/pycharm/).
4. An up-to-date version of [Google Chrome](https://www.google.com/chrome/downloads/).
5. A corresponding version of [ChromeDriver](https://chromedriver.chromium.org/downloads).To install dependencies, run:
```
pip install -r requirements.txt
```The main test case spec is [`test_acme_bank.py`](tests/test_acme_bank.py).
By default, the project will run tests with Ultrafast Grid but not Execution Cloud.
You can change these settings in [`conftest.py`](tests/conftest.py).To execute tests, set the `APPLITOOLS_API_KEY` environment variable
to your [account's API key](https://applitools.com/tutorials/guides/getting-started/registering-an-account),
and then run:```
python3 -m pytest -s -v tests
```**For full instructions on running this project, take our
[Selenium Python pytest tutorial](https://applitools.com/tutorials/quickstart/web/selenium/python)!**