PHP code example of appstract / laravel-dusk-safari

1. Go to this page and download the library: Download appstract/laravel-dusk-safari 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/ */

    

appstract / laravel-dusk-safari example snippets


use  Appstract\DuskDrivers\Safari\SupportsSafari;

abstract class DuskTestCase extends BaseTestCase
{
    use CreatesApplication, SupportsSafari;
}

public static function prepare()
{
    static::startSafariDriver();
}

protected function driver()
{
    return RemoteWebDriver::create(
        'http://localhost:9515', DesiredCapabilities::safari()
    );
}