2017 © Pedro Peláez
 

library laravel-dusk-safari

Run Dusk tests on Safari

image

appstract/laravel-dusk-safari

Run Dusk tests on Safari

  • Monday, January 22, 2018
  • by gizburdt
  • Repository
  • 4 Watchers
  • 6 Stars
  • 211 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 59 % Grown

The README.md

Run Dusk tests in Safari

Latest Version on Packagist Total Downloads Software License Build Status, (*1)

This package allows you to use the built-in Safari WebDriver of macOS, so you don't need Selenium to run Dusk tests in Safari., (*2)

This requires Safari 10 or higher., (*3)

Installation

You can install the package via composer:, (*4)

``` bash composer require appstract/laravel-dusk-safari, (*5)


## Usage Make sure to enable Remote Automation in the Safari menu bar: ```Develop > Allow Remote Automation.``` Add the ``SupportsSafari`` trait to your DuskTestCase: ```php use Appstract\DuskDrivers\Safari\SupportsSafari; abstract class DuskTestCase extends BaseTestCase { use CreatesApplication, SupportsSafari; }

Now you can start the server in the prepare method:, (*6)

public static function prepare()
{
    static::startSafariDriver();
}

Instruct Dusk to use Safari by changing DesiredCapabilities::chrome() to DesiredCapabilities::safari() in the Driver method:, (*7)

protected function driver()
{
    return RemoteWebDriver::create(
        'http://localhost:9515', DesiredCapabilities::safari()
    );
}

Contributing

Contributions are welcome, thanks to y'all :), (*8)

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., (*9)

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

22/01 2018

dev-master

9999999-dev https://github.com/appstract/laravel-dusk-safari

Run Dusk tests on Safari

  Sources   Download

MIT

The Requires

  • php >=5.6

 

laravel testing appstract dusk safari

22/01 2018

1.0.0

1.0.0.0 https://github.com/appstract/laravel-dusk-safari

Run Dusk tests on Safari

  Sources   Download

MIT

The Requires

  • php >=5.6

 

laravel testing appstract dusk safari

04/07 2017

0.2.0

0.2.0.0 https://github.com/appstract/laravel-dusk-safari

Run Dusk tests on Safari

  Sources   Download

MIT

The Requires

  • php >=5.6

 

laravel testing appstract dusk safari

03/07 2017

0.1.1

0.1.1.0 https://github.com/appstract/laravel-dusk-safari

Run Dusk tests on Safari

  Sources   Download

MIT

The Requires

  • php >=5.6

 

laravel testing appstract dusk safari

03/07 2017

0.1.0

0.1.0.0 https://github.com/appstract/laravel-dusk-safari

Run Dusk tests on Safari

  Sources   Download

MIT

The Requires

  • php ^5.6

 

laravel testing appstract dusk safari

03/07 2017

0.0.1

0.0.1.0 https://github.com/appstract/laravel-dusk-safari

Run Dusk tests on Safari

  Sources   Download

MIT

The Requires

  • php ^5.6

 

The Development Requires

laravel testing appstract dusk safari