Download the PHP package integratedexperts/behat-steps without Composer
On this page you can find all versions of the php package integratedexperts/behat-steps. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download integratedexperts/behat-steps
More information about integratedexperts/behat-steps
Files in integratedexperts/behat-steps
Package behat-steps
Short Description Collection of steps for Behat
License GPL-2.0-or-later
Homepage https://github.com/drevops/behat-steps
Informations about the package behat-steps
A collection of Behat steps
[](https://github.com/DrevOps/behat-steps/issues)
[](https://github.com/DrevOps/behat-steps/pulls)
[](https://circleci.com/gh/drevops/behat-steps)
[](https://codecov.io/gh/drevops/bats-helpers)



[](https://packagist.org/packages/drevops/behat-steps)
What is it?
This library is a collection of reusable testing actions and assertions for automated testing with Behat. It’s designed to help you write reliable, readable, and maintainable tests faster.
We provide a set of generic traits that can be used in any PHP project, with special support for Drupal through additional step definitions. All methods are properly namespaced, so they won’t conflict with your existing custom step definitions.
Our goal is to make this a go-to library for Behat steps. We maintain strong test coverage to avoid false positives and negatives, and follow clear guidelines to keep the step language consistent.
We actively maintain this package and welcome contributions from the community.
Available steps
Index of Generic steps
Class | Description |
---|---|
CookieTrait | Verify and inspect browser cookies. |
DateTrait | Convert relative date expressions into timestamps or formatted dates. |
ElementTrait | Interact with HTML elements using CSS selectors and DOM attributes. |
FileDownloadTrait | Test file download functionality with content verification. |
KeyboardTrait | Simulate keyboard interactions in Drupal browser testing. |
LinkTrait | Verify link elements with attribute and content assertions. |
PathTrait | Navigate and verify paths with URL validation. |
ResponseTrait | Verify HTTP responses with status code and header checks. |
WaitTrait | Wait for a period of time or for AJAX to finish. |
Index of Drupal steps
Class | Description |
---|---|
Drupal\BigPipeTrait | Bypass Drupal BigPipe when rendering pages. |
Drupal\BlockTrait | Manage Drupal blocks. |
Drupal\ContentBlockTrait | Manage Drupal content blocks. |
Drupal\ContentTrait | Manage Drupal content with workflow and moderation support. |
Drupal\DraggableviewsTrait | Order items in the Drupal Draggable Views. |
Drupal\EckTrait | Manage Drupal ECK entities with custom type and bundle creation. |
Drupal\EmailTrait | Test Drupal email functionality with content verification. |
Drupal\FieldTrait | Manipulate Drupal form fields and verify widget functionality. |
Drupal\FileTrait | Manage Drupal file entities with upload and storage operations. |
Drupal\MediaTrait | Manage Drupal media entities with type-specific field handling. |
Drupal\MenuTrait | Manage Drupal menu systems and menu link rendering. |
Drupal\MetatagTrait | Assert <meta> tags in page markup. |
Drupal\OverrideTrait | Override Drupal Extension behaviors. |
Drupal\ParagraphsTrait | Manage Drupal paragraphs entities with structured field data. |
Drupal\SearchApiTrait | Assert Drupal Search API with index and query operations. |
Drupal\TaxonomyTrait | Manage Drupal taxonomy terms with vocabulary organization. |
Drupal\TestmodeTrait | Configure Drupal Testmode module for controlled testing scenarios. |
Drupal\UserTrait | Manage Drupal users with role and permission assignments. |
Drupal\WatchdogTrait | Assert Drupal does not trigger PHP errors during scenarios using Watchdog. |
Installation
[!TIP] Upgrading from
2.x
? We’ve updated the steps language for greater consistency and clarity. Please refer to the migration map to see the changes. An automated migration script is not included, but an AI-guided migration prompt is provided below.
🤖 Expand to get an AI prompt for features migration
Copy and paste below into your agentic AI client chat.Usage
Add required traits to your
FeatureContext.php
(example):
Ensure that your behat.yml
has all the required extensions
enabled.
Exceptions
\Exception
is thrown when an assertion fails.\RuntimeException
is thrown when a step does not have enough contextual information to perform an action.
Skipping before scenario hooks
Some traits provide beforeScenario
hook implementations. These can be disabled
by adding @behat-steps-skip:METHOD_NAME
tag to your test.
For example, to skip beforeScenario
hook from ElementTrait
, add
@behat-steps-skip:ElementTrait
tag to the feature.
Development
See CONTRIBUTING.md for details on how to contribute to this project.
Repository created using https://getscaffold.dev/ project scaffold template
All versions of behat-steps with dependencies
behat/behat Version ^3
behat/mink Version >=1.11
behat/mink-selenium2-driver Version >=1.7
drupal/drupal-extension Version ^5