Skip to content

Commit 5015c06

Browse files
committed
Update base_case documentation
1 parent 9303f3f commit 5015c06

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
"""
2-
BaseCase gathers SeleniumBase libraries into a single file for easy calling.
2+
The BaseCase class is the main gateway for using The SeleniumBase Framework.
3+
It inherits Python's unittest.TestCase class, and runs with Pytest or Nose.
4+
All tests using BaseCase automatically launch WebDriver browsers for tests.
5+
36
Usage:
47
58
from seleniumbase import BaseCase
69
class MyTestClass(BaseCase):
7-
test_anything(self):
10+
def test_anything(self):
811
# Write your code here. Example:
912
self.open("https://github.com/")
1013
self.update_text("input.header-search-input", "SeleniumBase\n")
1114
self.click('a[href="/seleniumbase/SeleniumBase"]')
1215
self.assert_element("div.repository-content")
1316
....
1417
15-
The methods here expand and improve existing WebDriver commands.
16-
Improvements include making WebDriver more robust and more reliable.
17-
Page elements are given enough time to load before taking action on them.
18+
SeleniumBase methods expand and improve on existing WebDriver commands.
19+
Improvements include making WebDriver more robust, reliable, and flexible.
20+
Page elements are given enough time to load before WebDriver acts on them.
1821
Code becomes greatly simplified and easier to maintain.
1922
"""
2023

0 commit comments

Comments
 (0)