code: public void dismissPrompt() {
          String action = "Clicking 'Cancel' on a prompt";
          String expected = "Prompt is present to be clicked";
          if (isNotPrompt(action, expected, "click")) {
              return;
          }
          dismiss(action, expected, "prompt");
      }
docs: Dismiss (click 'Cancel' on) a prompt box