appstract/laravel-dusk-opera
Composer 安装命令:
composer require --dev appstract/laravel-dusk-opera
包简介
Run Dusk tests in Opera
README 文档
README
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:
composer require appstract/laravel-dusk-opera
Usage
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() ); }
Contributing
Contributions are welcome, thanks to y'all :)
About Appstract
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.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 3.64k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-04