def allowed_error_pages(*error_pages):
    """
    Decorator ignoring defined error pages at the end of test method. As param
    use what :py:meth:`~.WebdriverWrapperErrorMixin.get_error_page`
    returns.

    .. versionadded:: 2.0
    """
    def wrapper(func):
        setattr(func, ALLOWED_ERROR_PAGES, error_pages)
        return func
    return wrapper
Decorator ignoring defined error pages at the end of test method. As param
    use what :py:meth:`~.WebdriverWrapperErrorMixin.get_error_page`
    returns.

    .. versionadded:: 2.0