code: public void check(String locator) {
          getDispatcher().beforeCheck(this, locator);
          
          this.check();
          validatePresenceOfAlert();
          WebDriverWaitUtils.waitUntilElementIsPresent(locator);
          
          getDispatcher().afterUncheck(this, locator);
      }
docs: The CheckBox check function It invokes selenium session to handle the check action against the element. Waits
  until element is found with given locator.