Download the PHP package josrom/laravel-dusk-5.1 without Composer

On this page you can find all versions of the php package josrom/laravel-dusk-5.1. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-dusk-5.1

Build Status Total Downloads Latest Stable Version License

Laravel 5.1

Build Status Total Downloads Latest Stable Version License

Introduction

Laravel Dusk provides an expressive, easy-to-use browser automation and testing API. By default, Dusk does not require you to install JDK or Selenium on your machine. Instead, Dusk uses a standalone Chromedriver. However, you are free to utilize any other Selenium driver you wish.

Official Documentation

Documentation for Dusk can be found on the Laravel website.

Installation

To get the last version of Laravel Dusk for 5.1, simply require the project using Composer:

Instead, you may of course manually update your require block and run composer update if you so choose:

Add the service provider app/Providers/AppServiceProvider.php file:

After installing the Dusk package, run the dusk:install Artisan command:

A Browser directory will be created within your tests directory and will contain an example test. Next, set the APP_URL environment variable in your .env file. This value should match the URL you use to access your application in a browser.

To run your tests, use the dusk Artisan command. The dusk command accepts any argument that is also accepted by the phpunit command:

Configuration

By default dusk use the port 9515 and have a timeout of 20 seconds.

If you need change the configuration the dusk port and/or timeout, it is needed to publish the config file:

To make the changes by *environment variables, add the fields in the dusk env file**.

Extra methods

Method Definition
switchFrame (type of selector, value of selector)
select2 (selector, value(s), wait in seconds)
selectBySelector (selector css, value of selector)
assertFragmentIs (value of fragment)
assertQueryIs (value of query)
scrollTo (selector jQuery)
wysiwyg (type of wysiwyg: tinymce, ID of wysiwyg, value)

Examples

switchFrame

Example of payment with paypal using the switchFrame method:

select2

Example of select2 uses:

selectBySelector

Example of selectBySelector uses:

assertFragmentIs

Example of assertFragmentIs uses:

assertQueryIs

Example of assertQueryIs uses:

scrollTo

Example of scrollTo uses:

wysiwyg

Example of wysiwyg uses:

License

Laravel Dusk is open-sourced software licensed under the MIT license


All versions of laravel-dusk-5.1 with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
laravel/framework Version 5.1.*
facebook/webdriver Version 1.*
nesbot/carbon Version ~1.20
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package josrom/laravel-dusk-5.1 contains the following files

Loading the files please wait ....