File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
"""
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
+
3
6
Usage:
4
7
5
8
from seleniumbase import BaseCase
6
9
class MyTestClass(BaseCase):
7
- test_anything(self):
10
+ def test_anything(self):
8
11
# Write your code here. Example:
9
12
self.open("https://github.com/")
10
13
self.update_text("input.header-search-input", "SeleniumBase\n ")
11
14
self.click('a[href="/seleniumbase/SeleniumBase"]')
12
15
self.assert_element("div.repository-content")
13
16
....
14
17
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.
18
21
Code becomes greatly simplified and easier to maintain.
19
22
"""
20
23
You can’t perform that action at this time.
0 commit comments