Codem\DamnFineUploader\_generated\AcceptanceTesterActions::selectOption
[!] Method is generated. Documentation taken from corresponding module.
Selects an option in a select tag or in radio button group. ``` php <?php $I->selectOption('form select[name=account]', 'Premium'); $I->selectOption('form input[name=payment]', 'Monthly'); $I->selectOption('//form/select[@name=account]', 'Monthly'); ?> ``` Provide an array for the second argument to select multiple options: ``` php <?php $I->selectOption('Which OS do you use?', array('Windows','Linux')); ?> ``` Or provide an associative array for the second argument to specifically define which selection method should be used: ``` php <?php $I->selectOption('Which OS do you use?', array('text' => 'Windows')); // Only search by text 'Windows' $I->selectOption('Which OS do you use?', array('value' => 'windows')); // Only search by value 'windows' ?> ```
Signature
public function selectOption(
$select,
$option )
Parameters
$select
—$option
—