Skip to content

Commit 06952aa

Browse files
committed
Update the documentation
1 parent 8150f62 commit 06952aa

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,27 +312,29 @@ pytest my_first_test.py
312312
313313
```python
314314
from seleniumbase import BaseCase
315+
BaseCase.main(__name__, __file__)
315316
316317
class MyTestClass(BaseCase):
317318
def test_swag_labs(self):
318319
self.open("https://www.saucedemo.com")
319320
self.type("#user-name", "standard_user")
320321
self.type("#password", "secret_sauce\n")
321322
self.assert_element("div.inventory_list")
322-
self.assert_text("PRODUCTS", "span.title")
323+
self.assert_exact_text("Products", "span.title")
323324
self.click('button[name*="backpack"]')
324325
self.click("#shopping_cart_container a")
325-
self.assert_text("YOUR CART", "span.title")
326+
self.assert_exact_text("Your Cart", "span.title")
326327
self.assert_text("Backpack", "div.cart_item")
327328
self.click("button#checkout")
328329
self.type("#first-name", "SeleniumBase")
329330
self.type("#last-name", "Automation")
330331
self.type("#postal-code", "77123")
331332
self.click("input#continue")
332-
self.assert_text("CHECKOUT: OVERVIEW")
333+
self.assert_text("Checkout: Overview")
333334
self.assert_text("Backpack", "div.cart_item")
335+
self.assert_text("29.99", "div.inventory_item_price")
334336
self.click("button#finish")
335-
self.assert_exact_text("THANK YOU FOR YOUR ORDER", "h2")
337+
self.assert_exact_text("Thank you for your order!", "h2")
336338
self.assert_element('img[alt="Pony Express"]')
337339
self.js_click("a#logout_sidebar_link")
338340
self.assert_element("div#login_button_container")
@@ -698,7 +700,7 @@ pytest --dashboard --rs --headless
698700
python -m http.server 1948
699701
```
700702
701-
🔵 Now you can navigate to ``http://localhost:1948/dashboard.html`` in order to view the dashboard as a web app. This requires two different terminal windows: one for running the server, and another for running the tests, which should be run from the same directory. (Use ``CTRL+C`` to stop the http server.)
703+
🔵 Now you can navigate to ``http://localhost:1948/dashboard.html`` in order to view the dashboard as a web app. This requires two different terminal windows: one for running the server, and another for running the tests, which should be run from the same directory. (Use <kbd>Ctrl+C</kbd> to stop the http server.)
702704
703705
🔵 Here's a full example of what the SeleniumBase Dashboard may look like:
704706

examples/example_logs/ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pytest --dashboard --rs --headless
4040
python -m http.server 1948
4141
```
4242

43-
🔵 Now you can navigate to ``http://localhost:1948/dashboard.html`` in order to view the dashboard as a web app. This requires two different terminal windows: one for running the server, and another for running the tests, which should be run from the same directory. (Use ``CTRL+C`` to stop the http server.)
43+
🔵 Now you can navigate to ``http://localhost:1948/dashboard.html`` in order to view the dashboard as a web app. This requires two different terminal windows: one for running the server, and another for running the tests, which should be run from the same directory. (Use <kbd>Ctrl+C</kbd> to stop the http server.)
4444

4545
🔵 Here's a full example of what the SeleniumBase Dashboard may look like:
4646

help_docs/customizing_test_runs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ pytest --dashboard --rs --headless
331331
python -m http.server 1948
332332
```
333333

334-
🔵 Now you can navigate to ``http://localhost:1948/dashboard.html`` in order to view the dashboard as a web app. This requires two different terminal windows: one for running the server, and another for running the tests, which should be run from the same directory. (Use ``CTRL+C`` to stop the http server.)
334+
🔵 Now you can navigate to ``http://localhost:1948/dashboard.html`` in order to view the dashboard as a web app. This requires two different terminal windows: one for running the server, and another for running the tests, which should be run from the same directory. (Use <kbd>Ctrl+C</kbd> to stop the http server.)
335335

336336
🔵 Here's a full example of what the SeleniumBase Dashboard may look like:
337337

integrations/brython/ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pip install brython
2121
python -m http.server
2222
```
2323

24-
You can always stop the server by using ``CTRL+C``.
24+
(You can stop the server by using <kbd>Ctrl+C</kbd>)
2525

2626
### 2. Navigate to [http://localhost:8000/](http://localhost:8000/)
2727

integrations/node_js/ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ npm ci
3333
node server.js
3434
```
3535

36-
(You can always stop the server by using ``CTRL+C``.)
36+
(You can stop the server by using <kbd>Ctrl+C</kbd>)
3737

3838
#### 5. Open the SeleniumBase Test Runner web app
3939

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edit_uri: ""
1010
site_dir: "site"
1111
docs_dir: "mkdocs_build"
1212
# Copyright
13-
copyright: Copyright &copy; 2014 - 2022 Michael Mintz
13+
copyright: Copyright &copy; 2014 - 2023 Michael Mintz
1414
# Extensions
1515
markdown_extensions:
1616
- admonition

0 commit comments

Comments
 (0)