Lines Matching defs:index
73 public function selectByIndex($index)
75 $this->byIndex($index);
120 * Selects or deselects a checkbox or a radio button by its index.
122 * @param int $index
126 protected function byIndex($index, $select = true)
129 if (!isset($elements[$index])) {
130 throw new NoSuchElementException(sprintf('Cannot locate %s with index: %d', $this->type, $index));
133 $select ? $this->selectOption($elements[$index]) : $this->deselectOption($elements[$index]);