@predicate<EOL><INDENT>def has_text(self, *args, **kwargs):<DEDENT>
return self.assert_text(*args, **kwargs)<EOL>
Checks if the page or current node has the given text content, ignoring any HTML tags.

Whitespaces are normalized in both the node's text and the passed text parameter. Note that
whitespace isn't normalized in a passed regular expression as normalizing whitespace in a
regular expression isn't easy and doesn't seem to be worth it.

By default it will check if the text occurs at least once, but a different number can be
specified. ::

    page.has_text("lorem ipsum", between=range(2, 5))

Args:
    *args: Variable length argument list for :class:`TextQuery`.
    **kwargs: Arbitrary keyword arguments for :class:`TextQuery`.

Returns:
    bool: Whether it exists.