Testing in the Browser
Overview
Terms defined: browser automation
Outline
- Automate the browser with Selenium
- This tutorial is helpful
test_home_page.py
- Create a driver in a fixture that uses
yield
to ensure shutdown - Go to a URL
- Inspect elements
- Create a driver in a fixture that uses
test_login.py
interacts with the browser- Find elements
- Simulate typing and button clicking
- Wait for the browser to update
- Check the cookie is present