PHP code example of bhittani / web-driver

1. Go to this page and download the library: Download bhittani/web-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/ */

    

bhittani / web-driver example snippets




use Bhittani\WebDriver\Chrome;

$driver = Chrome::make();



use Bhittani\WebDriver\Phantomjs;

$driver = Phantomjs::make();



$googleDotCom = $driver->get('https://google.com');

$googleDotCom->getTitle(); // 'Google'