/** * {@inheritdoc} */ public function find($xpath) { $count = $this->browser->getXpathCount(utf8_decode($xpath)); $elements = array(); for ($i = 0; $i < $count; $i++) { $elements[] = new NodeElement(sprintf('(%s)[%d]', $xpath, $i + 1), $this->session); } return $elements; }