Hello there! If you're reading this, you have likely heard of SauceCon and may have attended the tour.allThePythonThings() talk. Here are the accompanying code samples.
These samples are all written using Python 3.7. I recommend using a virtual environment.
Select the button below to try this demo in Gitpod
Click here to see how to setup your Sauce Labs credentials in Gitpod
To install all needed dependencies, run
pip install -r requirements.txtTo run the simple, unit-style Pytest tests, run
pytest test_unit.pyTo run the plain old Selenium tests, run
pytest test_basic_selenium.pyTo run the Nerodia tests, run
pytest test_nerodia.pyTo run the pytest-selenium tests, run
pytest --driver Saucelabs --variables CHOICE_OF_JSON test_pytest_selenium.pywhere CHOICE_OF_JSON is one of chrome.json, safari.json or firefox.json.
To run the Robot test using SeleniumLibrary, run
robot -A chrome_config.txt using_selenium_library.robotTo run the Robot test using the custom Python library, run
robot using_python_keywords.robot