@@ -49,7 +49,15 @@ def test_basic(self):
49
49
# If you don't specify a `timeout`, a default timeout is used.
50
50
# Default timeouts are configured in seleniumbase/config/settings.py
51
51
#
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:
53
61
# [
54
62
# self.assert_text("xkcd: volume 0", "h3")
55
63
# ]
@@ -74,17 +82,17 @@ def test_basic(self):
74
82
# title = element.get_attribute("title")
75
83
# ]
76
84
#
77
- # 4 . self.assert_exact_text(TEXT) ignores leading and trailing
85
+ # 5 . self.assert_exact_text(TEXT) ignores leading and trailing
78
86
# whitespace in the TEXT assertion.
79
87
# So, self.assert_exact_text("Some Text") will find [" Some Text "].
80
88
#
81
- # 5 . For backwards-compatibilty, some SeleniumBase methods that do the
89
+ # 6 . For backwards-compatibilty, some SeleniumBase methods that do the
82
90
# same thing have multiple names, kept on from previous versions.
83
91
# Ex: wait_for_element_visible() is the same as find_element().
84
92
# Both search for and return the element, and raise an exception if
85
93
# the element does not appear on the page within the timeout limit.
86
94
# And assert_element() also does this (minus returning the element).
87
95
#
88
- # 6 . For the full method list, see one of the following:
96
+ # 7 . For the full method list, see one of the following:
89
97
# * SeleniumBase/seleniumbase/fixtures/base_case.py
90
98
# * SeleniumBase/help_docs/method_summary.md
0 commit comments