@classmethod
def fieldset_with_legend(cls, legend_text):
    """Returns an XPath to find a FieldSet with the given `legend_text`.

        .. versionadded:: 3.2
        """
    return cls(
        '//fieldset[legend[normalize-space(node())=normalize-space("%s")]]' %
        legend_text)
