7c1bf93056 | ||
---|---|---|
.. | ||
samples | ||
ReadMe.md | ||
__init__.py | ||
base_test_case.py | ||
boilerplate_test.py | ||
classic_obj_test.py | ||
page_objects.py | ||
sb_fixture_test.py |
ReadMe.md
Example Boilerplates:
- Boilerplate files are located in the SeleniumBase => examples/boilerplates/ folder.
- Boilerplates can help you structure tests using common design patterns such as the Page Object Model.
- For all 20 SeleniumBase design patterns, see: Syntax Formats
Boilerplate Files:
- base_test_case.py: This example demonstrates a test class inheriting BaseCase for adding new methods.
- page_objects.py: This example demonstrates Page Objects for reusing commonly-used selectors in tests.
- boilerplate_test.py: This example demonstrates inheritance of the above files for making a complete test.
- classic_obj_test.py: This example demonstrates the classic Page Object Model for structuring tests.