Download the PHP package lovers-of-behat/table-extension without Composer
On this page you can find all versions of the php package lovers-of-behat/table-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lovers-of-behat/table-extension
More information about lovers-of-behat/table-extension
Files in lovers-of-behat/table-extension
Package table-extension
Short Description Behat extension to inspect HTML tables
License MIT
Informations about the package table-extension
TableExtension
This library provides step definitions for checking HTML5 tables in Behat scenarios.
Installation
Configuration
Add the extension and context to your test suite in behat.yml
:
Options
tableMap
: Maps human readable table names to the CSS selectors that identify the tables in the web page. This allows you to use the human readable names in your Behat scenarios.
Usage
Given this example table:
Name | Department | Contact information | ||
---|---|---|---|---|
Office | Position | E-mail address | Phone number | |
Lelisa Ericsson | Healthcare | Nurse | [email protected] | 555-1234567 |
Genista Sumner | Science | Anthropologist | [email protected] | 555-987654 |
And we have added the table to the table_map
in behat.yml
:
Then we can use steps such as these to check the table:
For a more complete example, see tables.feature. Or check TableContext.php itself for the full list of available steps.
Development
Running tests locally:
Credits
Development of this extension has been sponsored by the Directorate-General for Informatics (DIGIT) of the European Commission, as part of the OpenEuropa initiative.
All versions of table-extension with dependencies
behat/behat Version ^3.4
symfony/dependency-injection Version ^2.1 || ^3.0 || ^4.0 || ^5 || ^6 || ^7.1
symfony/dom-crawler Version ^2.1 || ^3.0 || ^4.0 || ^5 || ^6 || ^7.1
symfony/event-dispatcher Version ^2.1 || ^3.0 || ^4.0 || ^5 || ^6 || ^7.1
friends-of-behat/mink-extension Version ^2.7