capybara/node/matchers.py
def has_checked_field(self, locator, **kwargs):
        """
        Checks if the page or current node has a radio button or checkbox with the given label,
        value, or id, that is currently checked.

        Args:
            locator (str): The label, name, or id of a checked field.
            **kwargs: Arbitrary keyword arguments for :class:`SelectorQuery`.

        Returns:
            bool: Whether it exists.
        """

        kwargs["checked"] = True
        return self.has_selector("field", locator, **kwargs)
def has_checked_field(self, locator, **kwargs):
        kwargs["checked"] = True
        return self.has_selector("field", locator, **kwargs)
def has_checked_field ( self , locator , * * kwargs ) : kwargs [ "checked" ] = True return self . has_selector ( "field" , locator , * * kwargs )
Checks if the page or current node has a radio button or checkbox with the given label,
        value, or id, that is currently checked.

        Args:
            locator (str): The label, name, or id of a checked field.
            **kwargs: Arbitrary keyword arguments for :class:`SelectorQuery`.

        Returns:
            bool: Whether it exists.
Checks if the page or current node has a radio button or checkbox with the given label value or id that is currently checked .