swimmer
1 week ago

Click on button in dusk

Posted 1 week ago by swimmer

Hello, I have the following HTML in Laravel Dusk


<button class="department btn-dept" id="wedding" data-department="wedding" data-ptags="occasion:wedding">
                                <span class="show-for-large-up">Weddings</span>
                                <span class="show-for-medium-only">Weddings</span>
                                <span class="show-for-small-only">Weddings</span>
                                <span class="show-for-plus-only">Weddings</span>
                            </button>

And I would like to click on this button in Laravel Dusk I tried the following options

->click('Weddings') ->click('.department btn-dept') ->click('#wedding')

What other options are there?

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