Example #1
0
 /**
  * {@inheritdoc}
  */
 public function findField($name)
 {
     if ($tab = $this->find('css', $this->elements['Active tab']['css'])) {
         return $tab->findField($name);
     }
     return parent::findField($name);
 }
Example #2
0
 /**
  * @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));
 }