public function elements(\PHPUnit_Extensions_Selenium2TestCase_ElementCriteria $criteria)
	{
		$values = $this->postCommand('elements', $criteria);
		$elements = array();
		foreach ($values as $value)
		{
			$elements[] = Element::fromResponseValue($value, $this->url->descend('element'), $this->driver);
		}
		return $elements;
	}
public function elements(\PHPUnit_Extensions_Selenium2TestCase_ElementCriteria $criteria)
	{
		$values = $this->postCommand('elements', $criteria);
		$elements = array();
		foreach ($values as $value)
		{
			$elements[] = Element::fromResponseValue($value, $this->url->descend('element'), $this->driver);
		}
		return $elements;
	}
public function elements ( \ PHPUnit_Extensions_Selenium2TestCase_ElementCriteria $ criteria ) { $ values = $ this -> postCommand ( 'elements' , $ criteria ) ; $ elements = array ( ) ; foreach ( $ values as $ value ) { $ elements [ ] = Element :: fromResponseValue ( $ value , $ this -> url -> descend ( 'element' ) , $ this -> driver ) ; } return $ elements ; }
Finds elements using given criteria.

Similar to {@see BrowserSession::element()}, only this returns all matched
elements as an array. Also, this doesn't throw an exception if no
element was found.

@param \PHPUnit_Extensions_Selenium2TestCase_ElementCriteria $criteria
@return Element[] array of instances of Se34\Element
Finds elements using given criteria .