/** * Open section or click on button to open modal window. * * @param string $sectionName * @return $this */ public function openSection($sectionName) { $sectionElement = $this->getContainerElement($sectionName); if ($sectionElement->getAttribute('type') == 'button') { $sectionElement->click(); } else { parent::openSection($sectionName); } return $this; }