PHP code example of appstract / laravel-dusk-opera

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


use Appstract\DuskDrivers\Opera\SupportsOpera;

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

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

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