-
Python 3 is installed on your machine.
-
Package manager pip is installed on your machine.
-
Chrome browser is installed on your machine.
-
Chrome Webdriver is on your machine and is in the environment variable PATH. Here are some resources from the internet that'll help you.
-
Git is installed on your machine.
-
If you want to run example from IDE, install any IDE for Python (e.g. PyCharm )
-
Restart your machine to implement updated environment variables (need for some OS).
- Git clone this repo
git clone https://github.com/applitools/tutorial-selenium-python-ultrafastgrid.git, or download this as a Zip file and unzip it
- Get an API key by logging into Applitools > Person Icon > My API Key
- Navigate to just cloned folder
tutorial-selenium-python-ultrafastgrid - Open in any editor file
ultrafastgrid_demo.pyand set your ApiKey in string '.set_api_key('...')' (or comment the string and set APPLITOOLS_API_KEY environment variable) - Install requirements
pip install -r requirements.txt - Run
ultrafastgrid_demo.pyby callingpython ultrafastgrid_demo.py - If you want run from IDE - start PyCharm, open just cloned project, set project interpreter by File > Settings > Project: > Project Interpreter choose interpreter by dropdown box; if IDE propose to install requirements - perform this; tap Run > Run and choose
ultrafastgrid_demo
Read more here: https://www.applitools.com/tutorials/selenium-python.html
Some OS use command python3 instead of python for Python3