Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 19, 2024 via composer

behat/mink-browserkit-driver v2.2.0

Symfony2 BrowserKit driver for Mink framework
Package summary
Share
0
issues
1
license
7
MIT
Package created
29 May 2012
Version published
9 Dec 2023
Maintainers
2
Total deps
7
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
behat/mink-browserkit-driver@v2.2.0
masterminds/html5@2.9.0
symfony/browser-kit@v7.0.7
symfony/css-selector@v7.0.7
symfony/dom-crawler@v7.0.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-mbstring@v1.29.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of behat/mink-browserkit-driver 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/browser-kitv7.0.7-MIT
prod
symfony/dom-crawlerv7.0.7-MIT
prod

Visualizations

Frequently Asked Questions

What does behat/mink-browserkit-driver do?

The behat/mink-browserkit-driver is a Symfony2 BrowserKit driver for the Mink framework. It effectively allows for web acceptance testing, providing the capability to simulate user interaction with a web application. The package provides an interface to control the Symfony2 BrowserKit, emulating the behavior of an actual web browser, making it critical for testing the web applications without requiring an actual browser instance.

How do you use behat/mink-browserkit-driver?

To use the behat/mink-browserkit-driver, you need to have Composer installed in your project. You can add the driver to your project by executing the command line composer require --dev behat/mink behat/mink-browserkit-driver. Once you've installed the driver, you can use it in your PHP application as below:

<?php

use Behat\Mink\Mink,
    Behat\Mink\Session,
    Behat\Mink\Driver\BrowserKitDriver;
use Symfony\Component\HttpKernel\Client;

$app  = require_once(__DIR__.'/app.php'); // Silex app

$mink = new Mink(array(
    'silex' => new Session(new BrowserKitDriver(new Client($app))),
));

$mink->getSession('silex')->getPage()->findLink('Chat')->click();

The above code initiates a new Mink operation with an embedded BrowserKit session. It then locates and clicks on a link labeled 'Chat' on the webpage.

Where are the behat/mink-browserkit-driver docs?

The documentation of behat/mink-browserkit-driver can be found directly in the source code and README of the package on the GitHub repository. It is primarily maintained by the open-source community. Visit the GitHub repository for the most up-to-date information and usage instructions: https://github.com/minkphp/MinkBrowserKitDriver.