/** * Set value * * @param array|string $values * @return void */ public function setValue($values) { $this->eventManager->dispatchEvent(['set_value'], [__METHOD__, $this->getAbsoluteSelector()]); $this->clear(); foreach ((array) $values as $value) { if (!$this->isChoice($value)) { parent::setValue($value); } } }
/** * Set value * * @param string $value * @return void */ public function setValue($value) { if ($value !== $this->find($this->actionToggle)->getText()) { $this->find($this->actionToggle)->click(); parent::setValue($value); } // Wait loader $element = $this->driver; $selector = $this->loader; $element->waitUntil(function () use($element, $selector) { return $element->find($selector)->isVisible() == false ? true : null; }); }
/** * Set value. * * @param string $value * @return void */ public function setValue($value) { $this->find($this->actionToggle)->click(); parent::setValue($value); }
/** * Set value. * * @param string $value * @return void */ public function setValue($value) { if (!$this->find(sprintf($this->attributeSet, $value), Locator::SELECTOR_XPATH)->isVisible()) { parent::setValue($value); } }