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) {
        }
    }
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) {
        }
    }
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 ) { } }
Close the Edit view, if it is open.
Close the Edit view if it is open .