2017 © Pedro Peláez
 

library chromedriver-standalone

Makes it easy to use standalone chromedriver with facebook/webdriver

image

tadaspaplauskas/chromedriver-standalone

Makes it easy to use standalone chromedriver with facebook/webdriver

  • Wednesday, April 4, 2018
  • by TadasPaplauskas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 58 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 5700 % Grown

The README.md

ChromeDriverStandalone

This PHP package comes with ChromeDriver standalone executables for every major OS (MacOS, Windows, Linux). It can also detect which OS you're using and inject the correct webdriver.chrome.driver environment variable value., (*1)

Executables are published to vendor/bin in case you need them., (*2)

Install

composer require tadaspaplauskas/chromedriver-standalone

composer require facebook/webdriver

Use

<?php
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();

Other available methods:, (*3)

// returns full path to the detected executable
Environment::getPath();

// returns full path to MacOS executable
Environment::getMacPath();

// returns full path to windows executable
Environment::getWinPath();

// returns full path to Linux executable
Environment::getLinuxPath();

TODO

Test if this works on windows, (*4)

Contribute

I will try my best to update executables every once in a while, but you can submit a pull request if I miss a release., (*5)

The Versions

04/04 2018

dev-master

9999999-dev

Makes it easy to use standalone chromedriver with facebook/webdriver

  Sources   Download

MIT

by Tadas Paplauskas

04/04 2018

1.0.0

1.0.0.0

Makes it easy to use standalone chromedriver with facebook/webdriver

  Sources   Download

MIT

by Tadas Paplauskas

04/04 2018

0.0.1

0.0.1.0

Adds the correct chromedriver executable based on the OS into the PHP runtime environment for use with facebook/webdriver

  Sources   Download

MIT

by Tadas Paplauskas