Skip to content

Commit 39cdd32

Browse files
committed
Update the example description
1 parent 9301afd commit 39cdd32

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

examples/my_first_test.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,15 @@ def test_basic(self):
4949
# If you don't specify a `timeout`, a default timeout is used.
5050
# Default timeouts are configured in seleniumbase/config/settings.py
5151
#
52-
# 3. There's usually more than one way to do the same thing. Ex:
52+
# 3. SeleniumBase methods are very versatile. For example,
53+
# self.update_text(SELECTOR, TEXT) does the following:
54+
# * Waits for the element to be visible
55+
# * Waits for the element to be interactive
56+
# * Clears the text field
57+
# * Types in the new text
58+
# * Hits Enter/Submit (if the text ends in "\n")
59+
#
60+
# 4. There's usually more than one way to do the same thing. Ex:
5361
# [
5462
# self.assert_text("xkcd: volume 0", "h3")
5563
# ]
@@ -74,17 +82,17 @@ def test_basic(self):
7482
# title = element.get_attribute("title")
7583
# ]
7684
#
77-
# 4. self.assert_exact_text(TEXT) ignores leading and trailing
85+
# 5. self.assert_exact_text(TEXT) ignores leading and trailing
7886
# whitespace in the TEXT assertion.
7987
# So, self.assert_exact_text("Some Text") will find [" Some Text "].
8088
#
81-
# 5. For backwards-compatibilty, some SeleniumBase methods that do the
89+
# 6. For backwards-compatibilty, some SeleniumBase methods that do the
8290
# same thing have multiple names, kept on from previous versions.
8391
# Ex: wait_for_element_visible() is the same as find_element().
8492
# Both search for and return the element, and raise an exception if
8593
# the element does not appear on the page within the timeout limit.
8694
# And assert_element() also does this (minus returning the element).
8795
#
88-
# 6. For the full method list, see one of the following:
96+
# 7. For the full method list, see one of the following:
8997
# * SeleniumBase/seleniumbase/fixtures/base_case.py
9098
# * SeleniumBase/help_docs/method_summary.md

0 commit comments

Comments
 (0)