You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 30, 2021. It is now read-only.
The purpose of this project is to have [Selenium][] running as simple and as fast as possible.
21
+
19
22
<h2id="official">Official repo</h2>
20
23
21
-
Note [SeleniumHQ/docker-selenium](https://github.com/SeleniumHQ/docker-selenium)project is more useful for building selenium grids while this one focuses on building disposable standalone seleniums with [video recording support](./docs/videos.md) and both browsers on the same container. It also adds some other features like [customizing the screen size](#screen-size) and [ssh access](#ssh) that can be particularly useful for tunneling support.
24
+
Note [SeleniumHQ/docker-selenium](https://github.com/SeleniumHQ/docker-selenium)and this one share the same purpose however both projects have diverged considerably in the last two years, some major differences are:
22
25
23
-
### Purpose
24
-
The purpose of this project is to have [Selenium][] running as simple and as fast as possible.
26
+
* both browsers and also the grid are on the same container in this repo
27
+
* support for [video recording](./docs/videos.md)
28
+
* support for [customizing the screen size](#screen-size)
29
+
* support for [ssh access](#ssh) that can be particularly useful for tunneling support
30
+
* this image size is considerably larger (around 2.5GB) than the official one which is around 300MB
31
+
* process manager: this image uses [supervisord](http://supervisord.org) while the official [uses bash](https://github.com/SeleniumHQ/docker-selenium/blob/master/StandaloneChromeDebug/entry_point.sh)
32
+
* release flow: TravisCI docker pushes vs docker.com automated builds in the official repo
33
+
34
+
Even though both projects share the same purpose is good to have alternatives. Letting both projects grow and learn from each other's success or failures ultimately impacts the final users positively. This doesn't discard that at some point all selenium maintainers will sit together a sprint to coordinate some major changes and cleanup open issues and perhaps we might merge both projects again in the future also.
25
35
26
36
### Alternatives
27
37
If you don't require a real browser [PhantomJS](https://github.com/ariya/phantomjs) might be enough for you.
28
-
[Electron](https://wallabyjs.com/docs/integration/electron.html) allows to use the latest Chromium/V8 which might be equivalent to running in Chrome however it sill needs a display so [xvfb][xvfb-electron] is needed. You can also use a paid service like [Sauce Labs][sauce] or [BrowserStack][], note they offer free open source accounts and straightforward [integration with Travis CI](https://docs.travis-ci.com/user/sauce-connect/).
38
+
[Electron](https://wallabyjs.com/docs/integration/electron.html) allows to use the latest Chromium/V8 which might be equivalent to running in Chrome however still requires a display so [xvfb][xvfb-electron] is needed. You can also use a paid service like [Sauce Labs][sauce] or [BrowserStack][], note they offer free open source accounts and straightforward [integration with Travis CI](https://docs.travis-ci.com/user/sauce-connect/).
29
39
You can also configure [xvfb](https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI) yourself but it involves some manual steps and doesn't include video recording, nor does PhantomJS nor Electron.
40
+
A [new chromium headless project](https://github.com/electron/electron/issues/228#issuecomment-223797342) looks very promising so might we worth to take a look though as of now leaves video recording out of scope there and Firefox of course.
30
41
31
42
### Usage
32
43
@@ -36,7 +47,7 @@ You can also configure [xvfb](https://docs.travis-ci.com/user/gui-and-headless-b
36
47
37
48
docker pull elgalu/selenium:2.53.0q
38
49
39
-
docker run --rm -ti --name=grid -p 4444:24444 -p 5900:25900 \
50
+
docker run -d --name=grid -p 4444:24444 -p 5900:25900 \
0 commit comments