Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function check()
 {
     $form = $this->getForm();
     if ($form) {
         foreach ($form->element->find(By::cssSelector('input[type="radio"]')) as $radio) {
             RadioButton::create($radio)->uncheck();
         }
     }
     parent::check();
 }
Пример #2
0
 /**
  * @param string $selector
  * @return \Brick\Browser\Element[]
  */
 private function findBySelector($selector)
 {
     return $this->element->find(By::cssSelector($selector))->all();
 }
Пример #3
0
 /**
  * @param \DOMElement[] $elements
  * @return \DOMElement[]
  */
 public function findElements(array $elements)
 {
     return By::xPath($this->xPath)->findElements($elements);
 }
Пример #4
0
 /**
  * Returns all the options inside this select.
  *
  * @return Element[]
  */
 public function getOptions()
 {
     return $this->element->find(By::tagName('option'))->all();
 }