Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appstract/laravel-dusk-opera
Run Dusk tests in Opera
https://github.com/appstract/laravel-dusk-opera
laravel-dusk laravel-package larvel opera
Last synced: about 2 months ago
JSON representation
Run Dusk tests in Opera
- Host: GitHub
- URL: https://github.com/appstract/laravel-dusk-opera
- Owner: appstract
- License: mit
- Created: 2017-07-04T12:57:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-26T21:38:50.000Z (almost 5 years ago)
- Last Synced: 2024-07-12T20:35:54.665Z (6 months ago)
- Topics: laravel-dusk, laravel-package, larvel, opera
- Language: PHP
- Homepage:
- Size: 25.4 MB
- Stars: 8
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Run Dusk tests in Opera
[![Latest Version on Packagist](https://img.shields.io/packagist/v/appstract/laravel-dusk-opera.svg?style=flat-square)](https://packagist.org/packages/appstract/laravel-dusk-opera)
[![Total Downloads](https://img.shields.io/packagist/dt/appstract/laravel-dusk-opera.svg?style=flat-square)](https://packagist.org/packages/appstract/laravel-dusk-opera)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://img.shields.io/travis/appstract/laravel-dusk-opera/master.svg?style=flat-square)](https://travis-ci.org/appstract/laravel-dusk-opera)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.
## Installation
You can install the package via composer:
``` bash
composer require appstract/laravel-dusk-opera
```## Usage
Add the ``SupportsOpera`` trait to your DuskTestCase:
```php
use Appstract\DuskDrivers\Opera\SupportsOpera;abstract class DuskTestCase extends BaseTestCase
{
use CreatesApplication, SupportsOpera;
}
```Now you can start the server in the ```prepare``` method:
```php
public static function prepare()
{
static::startOperaDriver();
}
```Instruct Dusk to use Opera by changing ```DesiredCapabilities::chrome()```
to ```DesiredCapabilities::opera()``` in the Driver method:```php
protected function driver()
{
return RemoteWebDriver::create(
'http://localhost:9515', DesiredCapabilities::opera()
);
}
```## Contributing
Contributions are welcome, [thanks to y'all](https://github.com/appstract/laravel-blade-directives/graphs/contributors) :)
## About Appstract
Appstract is a small team from The Netherlands. We create (open source) tools for webdevelopment and write about related subjects on [Medium](https://medium.com/appstract). You can [follow us on Twitter](https://twitter.com/teamappstract), [buy us a beer](https://www.paypal.me/teamappstract/10) or [support us on Patreon](https://www.patreon.com/appstract).
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.