Selenium: How to select an option from a select menu?

Posted by Andrew on Stack Overflow See other posts from Stack Overflow or by Andrew
Published on 2010-05-12T15:09:19Z Indexed on 2010/05/12 15:14 UTC
Read the original article Hit count: 339

Filed under:
|
|
|

I am writing a Selenium test in PHP using the PHPUnit Selenium extension.

I know how to type something into a text field:

$this->type('fieldName', 'value');

But how do I select an option from a drop-down menu?

© Stack Overflow or respective owner

Related posts about selenium

Related posts about selenium-rc