original_string: protected function closeConfirmBox()
      {
          try {
              $elem = $this->getSession()->getPage()->find('css', '.ez-view-confirmboxview');
              if ($elem && $elem->isVisible()) {
                  $elem->find('css', '.ez-confirmbox-close-icon')->click();
                  $this->sleep();
              }
          } catch (\Exception $e) {
          }
      }
code: protected function closeConfirmBox()
      {
          try {
              $elem = $this->getSession()->getPage()->find('css', '.ez-view-confirmboxview');
              if ($elem && $elem->isVisible()) {
                  $elem->find('css', '.ez-confirmbox-close-icon')->click();
                  $this->sleep();
              }
          } catch (\Exception $e) {
          }
      }
code_tokens: protected function closeConfirmBox ( ) { try { $ elem = $ this -> getSession ( ) -> getPage ( ) -> find ( 'css' , '.ez-view-confirmboxview' ) ; if ( $ elem && $ elem -> isVisible ( ) ) { $ elem -> find ( 'css' , '.ez-confirmbox-close-icon' ) -> click ( ) ; $ this -> sleep ( ) ; } } catch ( \ Exception $ e ) { } }
docstring: Close the "Confirm" modal dialog, if it is visible.
docstring_tokens: Close the Confirm modal dialog if it is visible .