@contextmanager<EOL><INDENT>def accept_confirm(self, text=None, wait=None):<DEDENT>
with self.driver.accept_modal("<STR_LIT>", text=text, wait=wait):<EOL><INDENT>yield<EOL><DEDENT>
Execute the wrapped code, accepting 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.