capybara/queries/selector_query.py
def visible(self):
        """ str: The desired element visibility. """
        if self.options["visible"] is not None:
            if self.options["visible"] is True:
                return "visible"
            elif self.options["visible"] is False:
                return "all"
            else:
                return self.options["visible"]
        else:
            if capybara.ignore_hidden_elements:
                return "visible"
            else:
                return "all"
def visible(self):
        """ str: The desired element visibility. """
        if self.options["visible"] is not None:
            if self.options["visible"] is True:
                return "visible"
            elif self.options["visible"] is False:
                return "all"
            else:
                return self.options["visible"]
        else:
            if capybara.ignore_hidden_elements:
                return "visible"
            else:
                return "all"
def visible ( self ) : if self . options [ "visible" ] is not None : if self . options [ "visible" ] is True : return "visible" elif self . options [ "visible" ] is False : return "all" else : return self . options [ "visible" ] else : if capybara . ignore_hidden_elements : return "visible" else : return "all"
str: The desired element visibility.
str : The desired element visibility .