Skip to content

Configuring WebSummoner

This section describes supported ways of automatic WebSummoner configuration.

WebSummoner can be configured in two ways:

  • Using Docker containers (default)
  • Using standalone binaries (when --use-drivers is added)

To view the list of available commands:

Terminal window
./cm websummoner --help

To launch command:

Terminal window
./cm websummoner <command> [args...]

Supported commands are:

CommandMeaning
argsPrint WebSummoner command line arguments
cleanupRemoves WebSummoner traces
configureCreates WebSummoner configuration file (implies download)
downloadDownloads WebSummoner binary or container image
startStarts WebSummoner process or container (implies download and configure)
statusShows actual configuration status (whether WebSummoner is downloaded, configured or running)
stopStops WebSummoner process or container
updateUpdates WebSummoner and configuration to latest version

To see supported flags for each command append --help:

Terminal window
./cm websummoner start --help

download command downloads latest or specified WebSummoner release as standalone binary or container image:

Terminal window
./cm websummoner download --version 1.2.1 --force

This command does nothing when already downloaded. Use --force flag to download again.

configure command in addition to downloading WebSummoner also downloads container images or webdriver binaries and generates configuration file:

Terminal window
./cm websummoner configure --browsers firefox:>45.0;opera:53.0 --last-versions 2 --tmpfs 128

Use --browsers to limit browsers to be configured, --tmpfs — to add Tmpfs support, --last-versions — to limit how many last browser versions to download. If you wish to download all available versions — specify --last-versions 0.

start command configures WebSummoner and starts it:

Terminal window
./cm websummoner start

By default WebSummoner data is stored in ~/.websummoner/websummoner but you can specify another directory using --config-dir flag. To download images with VNC server (to see live browser screen) use --vnc flag:

Terminal window
./cm websummoner start --vnc

To override WebSummoner listen port add --port flag:

Terminal window
./cm websummoner start --port 4445

To override WebSummoner startup arguments sessions add --args flag:

Terminal window
./cm websummoner start --args "-limit 10"

To download images from private registry — log in with docker login command and add --registry flag:

Terminal window
docker login my-registry.example.com # Specify user name and password
./cm websummoner start --registry https://my-registry.example.com

By default CM downloads browser images corresponding to 2 last versions of Firefox, Chrome and Opera. To download concrete browser versions — use --browsers flag as follows.

Download concrete versions of Firefox and Chrome:

Terminal window
./cm websummoner start --browsers 'firefox:51.0;firefox:55.0;chrome:66.0'

Download a range of Firefox versions and 3 last Opera versions:

Terminal window
./cm websummoner start --browsers 'firefox:>51.0,<=55.0;opera' --last-versions 3

In some cases you may want to configure WebSummoner to use an existing browsers.json configuration file. This is mainly needed to always use the same browser versions instead of downloading latest versions. To achieve this:

  1. Prepare a desired browsers.json configuration file.

  2. Launch cm with --browsers-json flag:

    Terminal window
    ./cm websummoner start --browsers-json /path/to/browsers.json

cm selenoid … is accepted as an alias of cm websummoner …, so scripts written for Selenoid keep working unchanged.