capybara/selector/selector.py
def build_selector(self):
        """ Selector: Returns a new :class:`Selector` instance with the current configuration. """

        kwargs = {
            'label': self.label,
            'descriptions': self.descriptions,
            'filters': self.filters}
        if self.format == "xpath":
            kwargs['xpath'] = self.func
        if self.format == "css":
            kwargs['css'] = self.func

        return Selector(self.name, **kwargs)
def build_selector(self):
        """ Selector: Returns a new :class:`Selector` instance with the current configuration. """

        kwargs = {
            'label': self.label,
            'descriptions': self.descriptions,
            'filters': self.filters}
        if self.format == "xpath":
            kwargs['xpath'] = self.func
        if self.format == "css":
            kwargs['css'] = self.func

        return Selector(self.name, **kwargs)
def build_selector ( self ) : kwargs = { 'label' : self . label , 'descriptions' : self . descriptions , 'filters' : self . filters } if self . format == "xpath" : kwargs [ 'xpath' ] = self . func if self . format == "css" : kwargs [ 'css' ] = self . func return Selector ( self . name , * * kwargs )
Selector: Returns a new :class:`Selector` instance with the current configuration.
Selector : Returns a new : class : Selector instance with the current configuration .