/**
  * Dismisses currently displayed popup menu. If no popup menu is currently displayed an
  * exception is thrown.
  *
  * @throws IllegalStateException when no popup menu is displayed in the time of invoking
  */
 public void hide() {
   if (!getMenuPopup().isDisplayed()) {
     throw new IllegalStateException(
         "You are attemting to dismiss the "
             + getNameOfFragment()
             + ", however, no "
             + getNameOfFragment()
             + " is displayed at the moment!");
   }
   Utils.performUniversalBlur(browser);
   waitUntilIsNotVisible().perform();
 }