Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 17, 2024 via composer

behat/mink-selenium2-driver v1.6.0

Selenium2 (WebDriver) driver for Mink framework
Package summary
Share
0
issues
2
licenses
1
MIT
1
Apache-2.0
Package created
29 May 2012
Version published
28 Mar 2022
Maintainers
2
Total deps
2
Direct deps
1
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
1 Packages, Including:
behat/mink-selenium2-driver@v1.6.0

Apache License 2.0

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
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
instaclick/php-webdriver@1.4.19
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

1
All Dependencies CSV
β“˜ This is a list of behat/mink-selenium2-driver 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
instaclick/php-webdriver1.4.19-Apache-2.0
prod

Visualizations

Frequently Asked Questions

What does behat/mink-selenium2-driver do?

The behat/mink-selenium2-driver package serves as a Selenium2 (WebDriver) driver for the Mink framework. It is a vital part of website testing as it lets your PHP application interact with a web browser, just like a human would. This package allows automated browser interactions in your PHP application, beneficial for creating automated tests for your web-based software.

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

The use of behat/mink-selenium2-driver in your PHP application enables automated interaction with your web browser. To utilize it, you need to first install it via Composer by adding the following to your composer.json:

{
    "require": {
        "behat/mink":                   "~1.5",
        "behat/mink-selenium2-driver":  "~1.1"
    }
}

After saving your composer.json file, just run php composer.phar install in your terminal.

Once the package has been installed, you can use it in your PHP scripts. Here's a simple code example:

<?php

use Behat\Mink\Mink,
    Behat\Mink\Session,
    Behat\Mink\Driver\Selenium2Driver;

use Selenium\Client as SeleniumClient;

$browser = 'firefox';
$url = 'http://example.com';

$mink = new Mink(array(
    'selenium2' => new Session(new Selenium2Driver($browser, null, $url)),
));

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

In this code sample, we initiated a new Mink session with the Selenium2Driver. We targeted a Firefox browser and the URL of the page to test. Finally, we used the findLink('Chat')->click() function to simulate the action of locating a link labeled 'Chat' on the page and clicking it.

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

The official documentation for using the behat/mink-selenium2-driver is provided directly in its GitHub repository under the README file. Found at https://github.com/minkphp/MinkSelenium2Driver, this documentation includes a comprehensive instruction guide on the functionalities of the package, usage examples, and additional details related to installation, testing, and contributors. It is important to refer to this documentation for complete understanding and proficient use of this package. Remember, clear and precise instructions from well-crafted documentation enables optimal use of the driver, elevating the overall success of your project.