PHP code example of oxid-esales / mink-selenium-driver
1. Go to this page and download the library: Download oxid-esales/mink-selenium-driver library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
oxid-esales / mink-selenium-driver example snippets
php
use Behat\Mink\Mink,
Behat\Mink\Session,
Behat\Mink\Driver\SeleniumDriver;
use Selenium\Client as SeleniumClient;
$startUrl = 'http://example.com';
$mink = new Mink(array(
'selenium' => new Session(new SeleniumDriver(new SeleniumClient($host, $port))),
));
$mink->getSession('selenium')->getPage()->findLink('Chat')->click();
bash
$> curl -sS https://getcomposer.org/installer | php
$> php composer.phar install