Introduction
Test functions and classes help organize your checks so you can find and fix problems easily.
When you want to check if a website button works correctly.
When you need to test multiple parts of a web page separately.
When you want to run the same test steps many times with different data.
When you want to keep your tests neat and easy to understand.
When you want to share setup steps like opening a browser for many tests.