You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* By default, **[CSS Selectors](https://www.w3schools.com/cssref/css_selectors.asp)** are used for finding page elements.
209
213
* If you're new to CSS Selectors, games like [Flukeout](http://flukeout.github.io/) can help you learn.
210
-
* Here are some common ``SeleniumBase`` methods you might find in tests:
214
+
* Here are some common ``SeleniumBase`` methods that you might find in tests:
211
215
212
216
```python
213
217
self.open(URL) # Navigate to the web page
@@ -426,23 +430,28 @@ sbase mkdir ui_tests
426
430
427
431
```bash
428
432
ui_tests/
433
+
│
429
434
├── __init__.py
430
-
├── boilerplates/
431
-
│ ├── __init__.py
432
-
│ ├── base_test_case.py
433
-
│ ├── boilerplate_test.py
434
-
│ ├── classic_obj_test.py
435
-
│ ├── page_objects.py
436
-
│ └── samples/
437
-
│ ├── __init__.py
438
-
│ ├── google_objects.py
439
-
│ └── google_test.py
440
435
├── my_first_test.py
441
436
├── parameterized_test.py
442
437
├── pytest.ini
443
438
├── requirements.txt
444
439
├── setup.cfg
445
-
└── test_demo_site.py
440
+
├── test_demo_site.py
441
+
└── boilerplates/
442
+
│
443
+
├── __init__.py
444
+
├── base_test_case.py
445
+
├── boilerplate_test.py
446
+
├── classic_obj_test.py
447
+
├── page_objects.py
448
+
├── sb_fixture_test.py
449
+
└── samples/
450
+
│
451
+
├── __init__.py
452
+
├── google_objects.py
453
+
├── google_test.py
454
+
└── swag_labs_test.py
446
455
```
447
456
448
457
<b>ProTip™:</b> You can also create a boilerplate folder without any sample tests in it by adding ``-b`` or ``--basic`` to the ``sbase mkdir`` command:
@@ -455,6 +464,7 @@ sbase mkdir ui_tests --basic
455
464
456
465
```bash
457
466
ui_tests/
467
+
│
458
468
├── __init__.py
459
469
├── pytest.ini
460
470
├── requirements.txt
@@ -790,22 +800,24 @@ is_text_visible(text, selector) # is text visible on a page
Copy file name to clipboardExpand all lines: examples/ReadMe.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
* Chrome is the default browser if not specified.
10
10
* Example tests are located in: <b>[SeleniumBase/examples/](https://github.com/seleniumbase/SeleniumBase/tree/master/examples)</b>.
11
11
* During test failures, logs and screenshots from the latest test run are saved to the ``latest_logs/`` folder.
12
-
* Tests can be structured using [15 unique syntax formats](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/syntax_formats.md).
12
+
* Tests can be structured using [17 unique syntax formats](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/syntax_formats.md).
13
13
14
14
(NOTE: Some example tests fail on purpose to demonstrate [logging features](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/example_logs/ReadMe.md).)
0 commit comments