PHP code example of nmfzone / laravel-behat-dusk
1. Go to this page and download the library: Download nmfzone/laravel-behat-dusk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nmfzone / laravel-behat-dusk example snippets
public function selectCheckbox($selector)
{
$this->browse(function (Browser $browser) use ($selector) {
$browser->scrollTo('#foo-element')->check($selector);
});
}
bash
$ php artisan vendor:publish --provider="Nmflabs\LaravelBehatDusk\ServiceProvider"