Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe87442

Browse files
committed
rephrase sentence
1 parent 88add0f commit fe87442

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

source/waits.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,18 @@ own utility package for them.
9090
The expected_conditions module contains a set of predefined conditions
9191
to use with WebDriverWait.
9292

93-
You can always create your own conditions when none of the previous convenience
94-
methods fit your requirements. You only need to create a class
95-
which __call__ method returns False when the condition isn't meet.
93+
**Custom Wait Conditions**
94+
95+
You can also create custom wait conditions when none of the previous convenience
96+
methods fit your requirements. A custom wait condition can be created using a class
97+
with `__call__` method which returns `False` when the condition doesn't match.
9698

9799

98100
::
99101

100102
class element_has_css_class(object):
101-
""" An expectation for checking that an element has a particular css class.
103+
"""An expectation for checking that an element has a particular css class.
104+
102105
locator - used to find the element
103106
returns the WebElement once it has the particular css class
104107
"""

0 commit comments

Comments
 (0)