vendredi 7 juin 2019

laravel dusk Facebook\WebDriver\Exception\UnexpectedJavascriptException: javascript error: Cannot read property 'click' of undefined

I need to test this using laravel dusk

<div class="modal fade bs-cancel-request-modal show" tabindex="-1" role="dialog" aria-labelledby="cancel-request" style="display: block;">
            <div class="modal-dialog modal-dialog-centered">
                <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title mt-0">Cancel request</h5>
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    </div>
                    <div class="modal-body">Cancel test request</div>
                    <div class="modal-footer">
                        <a href="javascript:void(0)" class="btn-link font-weight-bold waves-effect text-danger" data-dismiss="modal">Keep request</a>
                        <a href="javascript:void(0)" data-role="cancel-meeting-btn" class="btn-link font-weight-bold waves-effect text-danger" data-id="162">Cancel request</a>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div>

so i have to test keep and cancel I tried to just use ->clickLink('Keep request )

but I got this error

Facebook\WebDriver\Exception\UnexpectedJavascriptException: javascript error: Cannot read property 'click' of undefined



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2IlDiyo
via IFTTT

Aucun commentaire:

Enregistrer un commentaire