public function element(\PHPUnit_Extensions_Selenium2TestCase_ElementCriteria $criteria)
	{
		$value = $this->postCommand('element', $criteria);
		return Element::fromResponseValue($value, $this->url->descend('element'), $this->driver);
	}
public function element(\PHPUnit_Extensions_Selenium2TestCase_ElementCriteria $criteria)
	{
		$value = $this->postCommand('element', $criteria);
		return Element::fromResponseValue($value, $this->url->descend('element'), $this->driver);
	}
public function element ( \ PHPUnit_Extensions_Selenium2TestCase_ElementCriteria $ criteria ) { $ value = $ this -> postCommand ( 'element' , $ criteria ) ; return Element :: fromResponseValue ( $ value , $ this -> url -> descend ( 'element' ) , $ this -> driver ) ; }
Finds an element using the criteria.

Criteria are set by this WTF way:
<code>
$session->element($session->using('xpath')->value('//input[type="text"]'));
</code>

@param \PHPUnit_Extensions_Selenium2TestCase_ElementCriteria $criteria
@return Element
Finds an element using the criteria .