Created
December 20, 2016 16:57
-
-
Save longtailventures/3ea96f1b2230a9f7f9239d646e7777f0 to your computer and use it in GitHub Desktop.
Codeception: retrieve random option from select element
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$options = $I->grabMultiple(^SELECT_ELEMENT^ option', 'value'); | |
$I->selectOption('select', $options[array_rand($options)]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment