appstract/laravel-dusk-opera is a Laravel package for run dusk tests in opera.
It currently has 8 GitHub stars and 3.642 downloads on Packagist (latest version 2.0.0).
Install it with composer require appstract/laravel-dusk-opera.
Discover more Laravel packages by appstract
or browse all Laravel packages to compare alternatives.
Last updated
This package allows you to use Opera Webdriver in Dusk, so you don't need Selenium to run Dusk tests in Opera.
This requires a recent version of Opera.
You can install the package via composer:
composer require appstract/laravel-dusk-opera
Add the SupportsOpera trait to your DuskTestCase:
use Appstract\DuskDrivers\Opera\SupportsOpera;
abstract class DuskTestCase extends BaseTestCase
{
use CreatesApplication, SupportsOpera;
}
Now you can start the server in the prepare method:
public static function prepare()
{
static::startOperaDriver();
}
Instruct Dusk to use Opera by changing DesiredCapabilities::chrome()
to DesiredCapabilities::opera() in the Driver method:
protected function driver()
{
return RemoteWebDriver::create(
'http://localhost:9515', DesiredCapabilities::opera()
);
}
Contributions are welcome, thanks to y'all :)
Appstract is a small team from The Netherlands. We create (open source) tools for webdevelopment and write about related subjects on Medium. You can follow us on Twitter, buy us a beer or support us on Patreon.
The MIT License (MIT). Please see License File for more information.