Lines Matching defs:element
16 protected $element;
24 public function __construct(WebDriverElement $element)
26 $tagName = $element->getTagName();
31 $this->name = $element->getAttribute('name');
36 $this->element = $element;
47 foreach ($this->getRelatedElements() as $element) {
48 if ($element->isSelected()) {
49 $selectedElement[] = $element;
62 foreach ($this->getRelatedElements() as $element) {
63 if ($element->isSelected()) {
64 return $element;
103 foreach ($this->getRelatedElements($value) as $element) {
104 $select ? $this->selectOption($element) : $this->deselectOption($element);
145 foreach ($this->getRelatedElements() as $element) {
154 $id = $element->getAttribute('id');
163 $element->findElement(WebDriverBy::xpath($xpathNormalize));
172 if ($text !== $element->findElement(WebDriverBy::xpath($xpath))->getText()) {
180 $select ? $this->selectOption($element) : $this->deselectOption($element);
196 $formId = $this->element->getAttribute('form');
198 $form = $this->element->findElement(WebDriverBy::xpath('ancestor::form'));
209 return $this->element->findElements(
224 protected function selectOption(WebDriverElement $element)
226 if (!$element->isSelected()) {
227 $element->click();
234 protected function deselectOption(WebDriverElement $element)
236 if ($element->isSelected()) {
237 $element->click();