I want to select an item from a drop down menu in selenium 2, in combination with phpunit. The class I use is PHPUnit_Extensions_Selenium2TestCase. I know in selenium 1 it's:
$this->select("id=dt-general-input", "index=3");
But how des this convert to selenium 2? To select an element you do:
$this->select($this->byId("dt-general-input"));
But how do I select the 3rd index? This selection does not have (text) labeled options. So I can't use $this->select($this->byId("dt-general-input"))->selectOptionByValue(3);