PHP code example of tadaspaplauskas / chromedriver-standalone

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

    

tadaspaplauskas / chromedriver-standalone example snippets



use ChromeDriverStandalone\Environment;
use Facebook\WebDriver\Chrome\ChromeDriver;

Environment::setup();

$driver = ChromeDriver::start();

echo $driver->get('https://raw.githubusercontent.com/tadaspaplauskas/chromedriver-standalone/master/README.md')
    ->getPageSource();

$driver->quit();