PHP code example of galahad / dusk-browserstack
1. Go to this page and download the library: Download galahad/dusk-browserstack 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/ */
galahad / dusk-browserstack example snippets
namespace Tests;
use Galahad\BrowserStack\SupportsBrowserStack;
abstract class DuskTestCase extends BaseTestCase
{
// Add this:
use SupportsBrowserStack;
public static function prepare()
{
// This is no longer needed:
// static::startChromeDriver();
}
protected function driver()
{
// Set up the browser stack driver as needed
return $this->createBrowserStackDriver(/* $config */);
}
}