Dropdown select() Dusk not working

Published 8 months ago by LittlePadawan

Hello everyone,

I want to select an option in a dropdown menu but it doesn't select it. I've also checked the doc.

                    ->select('User[type]','Remplaçant')

When I run php artisan dusk ===> test OK but as I can see on the screenshot the option is not selected.

Do you have any idea?

Best Answer (As Selected By LittlePadawan)
LittlePadawan

This doesn't work for me @Talinon I found an alternative solution. I decided to remove a particular attribute which was search dropdown-after and ui search-dropdown. Now I can access the User[type] with :

$browse -> select('user[type]','Type_1');
Talinon

I'm not sure. Just to see if it makes a difference, try a dusk selector?

<select dusk='something'>
.....
</select>


->select('@something','Remplaçant')
LittlePadawan

This doesn't work for me @Talinon I found an alternative solution. I decided to remove a particular attribute which was search dropdown-after and ui search-dropdown. Now I can access the User[type] with :

$browse -> select('user[type]','Type_1');

Please sign in or create an account to participate in this conversation.