/** * {@inheritdoc} */ public function findField($name) { if ($tab = $this->find('css', $this->elements['Active tab']['css'])) { return $tab->findField($name); } return parent::findField($name); }
/** * @param string $name * {@inheritdoc} */ public function findField($name) { return $this->spin(function () use($name) { if ($tab = $this->find('css', $this->elements['Active tab']['css'])) { return $tab->findField($name); } return parent::findField($name); }, sprintf('Could not find field "%s"', $name)); }