original_string: protected function closeEditView()
      {
          try {
              $elem = $this->getSession()->getPage()->find('css', '.ez-main-content');
              if ($elem && $elem->isVisible()) {
                  $elem->find('css', '.ez-view-close')->click();
                  $this->waitWhileLoading();
              }
          } catch (\Exception $e) {
          }
      }
code: protected function closeEditView()
      {
          try {
              $elem = $this->getSession()->getPage()->find('css', '.ez-main-content');
              if ($elem && $elem->isVisible()) {
                  $elem->find('css', '.ez-view-close')->click();
                  $this->waitWhileLoading();
              }
          } catch (\Exception $e) {
          }
      }
code_tokens: protected function closeEditView ( ) { try { $ elem = $ this -> getSession ( ) -> getPage ( ) -> find ( 'css' , '.ez-main-content' ) ; if ( $ elem && $ elem -> isVisible ( ) ) { $ elem -> find ( 'css' , '.ez-view-close' ) -> click ( ) ; $ this -> waitWhileLoading ( ) ; } } catch ( \ Exception $ e ) { } }
docstring: Close the Edit view, if it is open.
docstring_tokens: Close the Edit view if it is open .