PHP code example of dannyreinders / dusk-browserstack
1. Go to this page and download the library: Download dannyreinders/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/ */
dannyreinders / 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 */);
}
}