Skip to content

Commit 50c54ac

Browse files
committed
Update the documentation
1 parent 601dc5d commit 50c54ac

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

help_docs/syntax_formats.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
<a id="syntax_formats"></a>
44

5-
## [<img src="https://seleniumbase.github.io/img/logo6.png" title="SeleniumBase" width="32">](https://github.com/seleniumbase/SeleniumBase/) The 23 Syntax Formats
5+
## [<img src="https://seleniumbase.github.io/img/logo6.png" title="SeleniumBase" width="40">](https://github.com/seleniumbase/SeleniumBase/) The 23 Syntax Formats / Design Patterns
66

7-
<h3>SeleniumBase supports multiple design patterns for structuring tests:</h3>
7+
<h3>SeleniumBase supports multiple ways of structuring tests:</h3>
88

99
<blockquote>
1010
<p dir="auto"></p>
@@ -849,9 +849,9 @@ with DriverContext() as driver:
849849

850850
with DriverContext(browser="chrome", incognito=True) as driver:
851851
driver.get("https://seleniumbase.io/apps/calculator")
852-
page_actions.wait_for_element(driver, "4", by="id").click()
853-
page_actions.wait_for_element(driver, "2", by="id").click()
854-
page_actions.wait_for_text(driver, "42", "output", by="id")
852+
page_actions.wait_for_element(driver, '[id="4"]').click()
853+
page_actions.wait_for_element(driver, '[id="2"]').click()
854+
page_actions.wait_for_text(driver, "42", "#output")
855855
js_utils.highlight_with_js(driver, "#output", loops=6)
856856

857857
with DriverContext() as driver:
@@ -880,9 +880,9 @@ from seleniumbase import page_actions
880880
driver = Driver(browser="chrome", headless=False)
881881
try:
882882
driver.get("https://seleniumbase.io/apps/calculator")
883-
page_actions.wait_for_element(driver, "4", by="id").click()
884-
page_actions.wait_for_element(driver, "2", by="id").click()
885-
page_actions.wait_for_text(driver, "42", "output", by="id")
883+
page_actions.wait_for_element(driver, '[id="4"]').click()
884+
page_actions.wait_for_element(driver, '[id="2"]').click()
885+
page_actions.wait_for_text(driver, "42", "#output")
886886
js_utils.highlight_with_js(driver, "#output", loops=6)
887887
finally:
888888
driver.quit()

0 commit comments

Comments
 (0)