@param string $name

@return Element\Input\Search
493261
public function addInputSearch(string $name) : Element\Input\Search
    {
        $input = new Element\Input\Search($this, $name);
        $this->addComponent($name, $input);

        return $input;
    }
10046
public function getJs($name)
    {
        switch ($this->getType()) {
            case EventType::DEFAULT_ONCE:
                return $this->getEventJs($name, true);
            case EventType::DOM:
                return $this->getDomEventJs($name);
            case EventType::DOM_ONCE:
                return $this->getDomEventJs($name, true);
            case EventType::DEFAULT_EVENT:
            default:
                return $this->getEventJs($name);
        }
    }
689747
public function addInputRange(string $name) : Element\Input\Range
    {
        $input = new Element\Input\Range($this, $name);
        $this->addComponent($name, $input);

        return $input;
    }
668804
public function addMultipleSelect(string $name) : Element\Select\MultipleSelect
    {
        $select = new Element\Select\MultipleSelect($this, $name . '[]');
        $this->addComponent($name, $select);

        return $select;
    }
857438
public function addInputHidden(string $name) : Element\Input\Hidden
    {
        $input = new Element\Input\Hidden($this, $name);
        $this->addComponent($name, $input);

        return $input;
    }
891513
public function element(string $name): ElementInterface
    {
        if (! isset($this->elements[$name])) {
            throw new ElementNotFoundException(
                sprintf('The element with name <code>%s</code> does not exists', $name)
            );
        }

        return $this->elements[$name];
    }
547180
public function unsetElement($name)
    {
        if (isset($this->elements[$name])) {
            unset($this->elements[$name]);
        }

        return $this;
    }
59924
public function get(string $name = null)
    {
        return $this->requestParser->parseInto(
                $this->injector->getInstance(
                        $this->userInputClass,
                        'stubbles.console.input.instance'
                ),
                $name
        );
    }
1157867
public function getElementsByName($name)
    {
        $found = array();
        foreach ($this->getRecursiveIterator() as $element) {
            if ($element->getName() == $name) {
                $found[] = $element;
            }
        }
        return $found;
    }
336487
public function getSelector($name)
    {
        if ('named' === $name) {
            @trigger_error(
                'Using the "named" selector directly from the handler is deprecated as of 1.6 and will be removed in 2.0.'
                .' Use the "named_partial" or use the "named" selector through the Element API instead.',
                E_USER_DEPRECATED
            );
            $name = 'named_partial';
        }

        if (!$this->isSelectorRegistered($name)) {
            throw new \InvalidArgumentException("Selector \"$name\" is not registered.");
        }

        return $this->selectors[$name];
    }
1361556
public static function input( $name, $type = 'text' )
    {
        $elem = static::createElement($name,'input');
        $elem->attributes['type'] = $type;
        return $elem;
    }
1103372
protected function findElement($name)
    {
        try {
            return $this->wd->findElement(WebDriverBy::id($name));
        } catch (\Exception $e) {
        }

        try {
            return $this->wd->findElement(WebDriverBy::name($name));
        } catch (\Exception $e) {
        }

        try {
            return $this->wd->findElement(WebDriverBy::cssSelector($name));
        } catch (\Exception $e) {
        }

        try {
            return $this->wd->findElement(WebDriverBy::xpath($name));
        } catch (\Exception $e) {
        }

        throw new CannotFindElement('Cannot find element: '.$value.' isn\'t visible on the page');
    }
1028806
public function addInputButton(string $name) : Element\Input\Button
    {
        $input = new Element\Input\Button($this, $name);
        $this->addComponent($name, $input);

        return $input;
    }
97685
public function get($name)
    {
        $found = null;
        /** @var ElementInterface $element */
        foreach ($this->elements as $element) {
            if ($element->getName() == $name) {
                $found = $element;
            }
        }
        return $found;
    }
606727
public function setActive($name) {
		$element = $this->getElement($name);
		
		if ($element instanceof Element) {
			$element->setActive();
		}
		
		return $this;
	}
109769
public function addElement($element, $name = null) {
		if ($name === null) {
			$this->_elements[] = $element;
		} else {
			$this->_elements[$name] = $element;
		}
		
		return $this;
	}
659647
public function hasElement($name)
    {
        foreach($this->elements as $element){
            if($element->getName() == $name) {
                return true;
            }
        }

        return false;
    }