Download the PHP package manifesto/behat-contexts without Composer

On this page you can find all versions of the php package manifesto/behat-contexts. 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 behat-contexts

Behat Additional Contexts

This package extends the basic contexts and step definitions provided with Mink and Drupal contexts. Additionally creates an HTML dump and a Screenshot on a failure, make debugging easier.

How to Install

composer require gambry/behat-contexts:* composer update

How to use

You'll find these additional definitions:

GeneralContext

take a screenshot

Takes a screenshot of the current session/page state

I wait for "X" seconds

Wait "X" seconds before executing the next step

I focus on "element"

Set the focus on the element, clicking on it. [requires javascript api]

I fill in "field" with "value" plus random data

It tries to create a unique value to be submitted, appending some random data to the specified value

I select "option" from "select" with javascript

I check "checkbox/label" with javascript

Selects/Checks elements with javascript, avoiding selenium2d errors about element not being available and it's also form-elements-javascript-libraries friendly (Chosen.js, Bootstrap, customSelect, etc.) [requires javascript api]

DrupalContext

I am logged in as a user with the "role" role(s) on this site

I am an anonymous user on this site

I am not logged in on this site

I am logged in as :name on this site

Due this issue if you don't have a Logout link on the homepage Drupal Driver doens't understand if the user is loggedin or not. These definitions fix that problem giving you the possibility to define the path where the driver can find the Logout link: define the constant BDD_DRUPAL_LOGGEDIN_PATH in order to set your custom path (i.e.: "/user", default is "/")

I am logged in as :name with password :pass

It logs in the specific user with his/her specific password

I should see the "element" form element

I should not see the "element" form element

Using Fields Dependencies or Form API states some elements are visible only after certain conditions. These definitions check the visibility of the element. [requires javascript api]

HTML dump and Screenshot

To define the path for dumps/ and screenshots/ folders define the constant BDD_REPORT_PATH (default "./")


All versions of behat-contexts with dependencies

PHP Build Version
Package Version
Requires drupal/drupal-extension Version 3.*
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 manifesto/behat-contexts contains the following files

Loading the files please wait ....