Skip to content

Commit

Permalink
rephrase sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
baijum committed Aug 14, 2017
1 parent 88add0f commit fe87442
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/waits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,18 @@ own utility package for them.
The expected_conditions module contains a set of predefined conditions
to use with WebDriverWait.

You can always create your own conditions when none of the previous convenience
methods fit your requirements. You only need to create a class
which __call__ method returns False when the condition isn't meet.
**Custom Wait Conditions**

You can also create custom wait conditions when none of the previous convenience
methods fit your requirements. A custom wait condition can be created using a class
with `__call__` method which returns `False` when the condition doesn't match.


::

class element_has_css_class(object):
""" An expectation for checking that an element has a particular css class.
"""An expectation for checking that an element has a particular css class.

locator - used to find the element
returns the WebElement once it has the particular css class
"""
Expand Down

0 comments on commit fe87442

Please sign in to comment.