capybara/queries/selector_query.py
def description(self):
        """ str: A long description of this query. """

        description = self.label

        if self.locator:
            description += " {}".format(desc(self.locator))
        if self.options["text"] is not None:
            description += " with text {}".format(desc(self.options["text"]))

        description += self.selector.description(self.filter_options)

        return description
def description(self):
        """ str: A long description of this query. """

        description = self.label

        if self.locator:
            description += " {}".format(desc(self.locator))
        if self.options["text"] is not None:
            description += " with text {}".format(desc(self.options["text"]))

        description += self.selector.description(self.filter_options)

        return description
def description ( self ) : description = self . label if self . locator : description += " {}" . format ( desc ( self . locator ) ) if self . options [ "text" ] is not None : description += " with text {}" . format ( desc ( self . options [ "text" ] ) ) description += self . selector . description ( self . filter_options ) return description
str: A long description of this query.
str : A long description of this query .