Last active
February 11, 2023 05:40
-
-
Save stmswitcher/d77e8745b203ce1eb572 to your computer and use it in GitHub Desktop.
Select random option for Codeception
This file contains 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('#selectID 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
This just helped me a ton with selecting a random element