Exemple #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();
 }
Exemple #2
0
 /**
  * @param string $selector
  * @return \Brick\Browser\Element[]
  */
 private function findBySelector($selector)
 {
     return $this->element->find(By::cssSelector($selector))->all();
 }
Exemple #3
0
 /**
  * @param \DOMElement[] $elements
  * @return \DOMElement[]
  */
 public function findElements(array $elements)
 {
     return By::xPath($this->xPath)->findElements($elements);
 }
Exemple #4
0
 /**
  * Returns all the options inside this select.
  *
  * @return Element[]
  */
 public function getOptions()
 {
     return $this->element->find(By::tagName('option'))->all();
 }