PHPackages                             shimabox/selenium-downloader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. shimabox/selenium-downloader

ActiveLibrary

shimabox/selenium-downloader
============================

selenium-server-standalone, ChromeDriver, geckodriver and IEDriverServer downloader.

v0.3.2(6y ago)02.2k1MITPHPPHP &gt;=5.5CI failing

Since Oct 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/shimabox/selenium-downloader)[ Packagist](https://packagist.org/packages/shimabox/selenium-downloader)[ Docs](https://github.com/shimabox/selenium-downloader)[ RSS](/packages/shimabox-selenium-downloader/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (7)Used By (1)

selenium-downloader
===================

[](#selenium-downloader)

selenium-server-standalone, ChromeDriver, geckodriver and IEDriverServer downloader.

[![License](https://camo.githubusercontent.com/10badb7002a5f89fb43d5954d1b53716e7adeef9e8384e134c0ca9b75d2c2d01/68747470733a2f2f706f7365722e707567782e6f72672f7368696d61626f782f73656c656e69756d2d646f776e6c6f616465722f6c6963656e7365)](https://packagist.org/packages/shimabox/selenium-downloader)[![Build Status](https://camo.githubusercontent.com/94961e30575a8014cdfb793e46583fc8bcb077e678d805194b0ce98bd8a69204/68747470733a2f2f7472617669732d63692e6f72672f7368696d61626f782f73656c656e69756d2d646f776e6c6f616465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/shimabox/selenium-downloader)

Features
--------

[](#features)

- Can download selenium related assets interactively or with option(not interactive).
    -
    -
    -
- Selectable from Mac, Windows, Linux.

Demo
----

[](#demo)

### Interactively.

[](#interactively)

[![demo-interaction](https://github.com/shimabox/assets/raw/master/selenium-downloader/demo-interaction.gif)](https://github.com/shimabox/assets/raw/master/selenium-downloader/demo-interaction.gif)

### With option (not interactive).

[](#with-option-not-interactive)

[![demo-option](https://github.com/shimabox/assets/raw/master/selenium-downloader/demo-option.gif)](https://github.com/shimabox/assets/raw/master/selenium-downloader/demo-option.gif)

Requirements
------------

[](#requirements)

- PHP 5.5+ or newer

Installation
------------

[](#installation)

Via Composer

```
$ composer require shimabox/selenium-downloader

```

Please refer to the link below.
[\##instant-download](https://github.com/shimabox/selenium-downloader#instant-download "shimabox/selenium-downloader: selenium-server-standalone, ChromeDriver, geckodriver and IEDriverServer downloader.")

Develop

```
$ git clone https://github.com/shimabox/selenium-downloader
$ cd selenium-downloader
$ composer install

```

Setting(.env)
-------------

[](#settingenv)

If you need to change the default settings, copy the `.env.default` file, create an `.env` file, and modify the `.env` file.
The default setting looks at `.env.default` file.

```
$ cp .env.dafault .env
$ vim .env

// The default of output directory path(Output to "selenium-downloader/xxx" if not set).
DEFAULT_OUTPUT_DIR=
// The default version of selenium-server-standalone.
// Why 3.8.1? Because there are cases where it will not work unless pass-through mode can be set to false(-enablePassThrough false).
DEFAULT_SELENIUM_VER='3.8.1'
// The default version of ChromeDriver.
DEFAULT_CHROMEDRIVER_VER='81.0.4044.69'
// The default version of geckodriver.
DEFAULT_GECKODRIVER_VER='0.26.0'
// The default version of IEDriverServer.
DEFAULT_IEDRIVER_VER='3.141.59'

```

If `DEFAULT_OUTPUT_DIR` is not set, the downloaded asset is output to `selenium-downloader/xxx`.

Usage
-----

[](#usage)

### In the case of interactive mode.

[](#in-the-case-of-interactive-mode)

```
# Run without option.
$ php selenium_downloader.php

```

e.g)

```
# "m" or "w" or "l" is mandatory.
Please select platform. [m]ac, [w]indows, [l]inux: w
# Specify the directory path to output.
# If not specified, it is output to the path specified by .env.dafault|.env(DEFAULT_OUTPUT_DIR).
# If there is still no value, it is output to "selenium-downloader/xxx".
Please enter the output directory
Default[/default/output/path]:
# Default "No".
Do you need Selenium? [N]o, [y]es: y
# Default "3.8.1".
# Why 3.8.1? Because there are cases where it will not work unless pass-through mode can be set to false(-enablePassThrough false).
Please enter selenium-server-standalone version Default [3.8.1]: 3.8.1
# Default "No".
Do you need ChromeDriver? [N]o, [y]es: y
# Default "81.0.4044.69".
Please enter ChromeDriver version Default [81.0.4044.69]:
# Default "No".
Do you need GeckoDriver? [N]o, [y]es: y
# Default "0.26.0".
Please enter GeckoDriver version Default [0.26.0]:
# Default "No".
Do you need IEDriver? [N]o, [y]es: y
# Default "3.141.59".
Please enter IEDriver version Default [3.141.59]:
# Default "32" (Because key input is earlier than 64bit version).
Please enter OS bit version [32]bit, [64]bit, Default[32]:
Done.

```

### When specifying options (not interactive).

[](#when-specifying-options-not-interactive)

Supports the following options.

FormatDescription-h,--helpDisplay help message and exit.-pSelect platform \[m\]ac or \[w\]indows or \[l\]inux.
Required except that "-h, --help" is specified.-dSpecify the directory path to output.
If not specified, it is output to the path specified by .env.dafault|.env(DEFAULT\_OUTPUT\_DIR).
If there is still no value, it is output to "selenium-downloader/xxx".-sThe version of selenium-standalone-server.
(e.g 3.8.1, 3.7(3.7.0)
(Recommend version 3.8.1)-cThe version of ChromeDriver.
(e.g 81.0.4044.69, 2.43-gThe version of GeckoDriver.
(e.g 0.26(0.26.0), 0.20.1-iThe version of IEDriverServer.
(e.g 3.141.59, 3.14(3.14.0)-bThe number of OS bits (32 or 64).
Default is "32" (Because key input is earlier than 64bit version)
Valid only when IEDriverServer is specified.Help message.

```
$ php selenium_downloader.php -h
Usage:
  -h,--help
    Display help message and exit.
  -p platform (required)
    Select platform [m]ac or [w]indows or [l]inux.
    Required except that "--help, -h" is specified.
  -d output_dir_path
    Enter the output directory path.
    If not specified, it is output to the path specified by .env.dafault|.env(DEFAULT_OUTPUT_DIR).
    If there is still no value, it is output to "selenium-downloader/xxx".
  -s selenium-standalone-server_ver
    Enter the version of selenium-standalone-server. (e.g 3.8.1, 3.7(3.7.0)
    (Recommend version 3.8.1)
  -c ChromeDriver_ver
    Enter the version of ChromeDriver. (e.g 81.0.4044.69, 2.43
  -g geckodriver_ver
    Enter the version of GeckoDriver. (e.g 0.26(0.26.0), 0.20.1
  -i IEDriverServer_ver
    Enter the version of IEDriverServer. (e.g 3.141.59, 3.14(3.14.0)
  -b bit_of_os
    Enter the number of OS bits (32 or 64).
    Default is "32" (Because key input is earlier than 64bit version).
    Valid only when IEDriverServer is specified.

e.g) 1 Basic.
$ php selenium_downloader.php -p m -s 3.8.1 -c 81.0.4044.69 -g 0.26
e.g) 2 When specifying the output directory.
$ php selenium_downloader.php -p m -d /your/path/to -s 3.8.1
e.g) 3 When downloading the 64 bit version of the IEDriverServer.
$ php selenium_downloader.php -p w -i 3.141.59 -b 64
e.g) 4 When downloading only geckodriver.
$ php selenium_downloader.php -p m -g 0.26
or
$ php selenium_downloader.php -p m -s "" -c "" -g 0.26

```

Instant download
----------------

[](#instant-download)

For example, create `instant_selenium.php`.

```
