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