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
via Chebli Mohamed
Get custom Laravel development services from a leading Laravel Development Company based in India & USA to build modern and robust solutions. Contact us for Information for Pricing: +91-9806724185 or Contact@expresstechsoftwares.com
RépondreSupprimer