capybara/session.py
def dismiss_confirm(self, text=None, wait=None):
        """
        Execute the wrapped code, dismissing a confirm.

        Args:
            text (str | RegexObject, optional): Text to match against the text in the modal.
            wait (int | float, optional): Maximum time to wait for the modal to appear after
                executing the wrapped code.

        Raises:
            ModalNotFound: If a modal dialog hasn't been found.
        """

        with self.driver.dismiss_modal("confirm", text=text, wait=wait):
            yield
def dismiss_confirm(self, text=None, wait=None):
        with self.driver.dismiss_modal("confirm", text=text, wait=wait):
            yield
def dismiss_confirm ( self , text = None , wait = None ) : with self . driver . dismiss_modal ( "confirm" , text = text , wait = wait ) : yield
Execute the wrapped code, dismissing a confirm.

        Args:
            text (str | RegexObject, optional): Text to match against the text in the modal.
            wait (int | float, optional): Maximum time to wait for the modal to appear after
                executing the wrapped code.

        Raises:
            ModalNotFound: If a modal dialog hasn't been found.
Execute the wrapped code dismissing a confirm .