I am new to Laravel Dusk, and currently working on a simple project where you can add multiple dropdowns. The dropdowns have a name like name = "item[]". How can I select each dropdown and select random options?
I have tried :
$items = $browser->elements('input[name^="item[]"');
foreach ($items as $item) {
$item->select(); // Select random options
}
but it doesn't work. There's no error, test and assertions are OK but it's not selecting values from the dropdowns.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire