4.0.12 • Published 4 months ago

selenium-side-runner v4.0.12

Weekly downloads
3,827
License
Apache-2.0
Repository
github
Last release
4 months ago

Selenium SIDE Runner

Runs exported Selenium IDE tests in command line

Installation

Node.js is required to use the Selenium side-runner. The project guarantees support for the active LTS major version (e.g. 10 & 12).
NOTE: The minimum supported version of Node is now 10.15.0 LTS

yarn global add selenium-side-runner
or
npm install -g selenium-side-runner

Usage

selenium-side-runner project.side project2.side *.side

Passing capabilities

selenium-side-runner -c "browserName=chrome platform=MAC"

Passing nested capabilities

selenium-side-runner -c "goog:chromeOptions.binary='/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'"

Chrome specific list capabilities (headless)

selenium-side-runner -c "goog:chromeOptions.args=[disable-infobars, headless]"

Running on remote WebDriver server

selenium-side-runner --server http://localhost:4444/wd/hub

Filter tests

Will only run tests matching the filter selenium-side-runner --filter mytest

Changing the base URL

Change the base URL that the tests were recorded with, note that it will not affect tests that used absolute URLs. selenium-side-runner --base-url https://www.seleniumhq.org

.side.yml

All of the configuration can be written in the .side.yml file, the runner will load it from the current working directory automatically.

Example usage

capabilities:
  browserName: "firefox"
baseUrl: "https://www.seleniumhq.org"
server: "http://localhost:4444/wd/hub"

Advanced features

Running on multiple workers

Running tests faster through the use of multiple workers
selenium-side-runner -w 4
The runner will automatically set the number of workers to the amount of cores available, for most cases this is the best result.
Note: unless you specified that a suite is parallel, it will still run the contained tests sequentially, though the runner will run suites in parallel by default.
To mark a suite's tests as parallel, set that in the suite's settings in the IDE.

Using a proxy server

selenium-side-runner can pass proxy capabilities to the browser using the following schemes.

direct proxy

Configures WebDriver to bypass all browser proxies.
selenium-side-runner --proxy-type=direct

proxyType: direct
manual proxy

Manually configures the browser proxy.
selenium-side-runner --proxy-type=manual --proxy-options="http=localhost:434 bypass=[http://localhost:434, http://localhost:8080]"

proxyType: manual
proxyOptions:
  http: http://localhost:434
  https: http://localhost:434
  ftp: http://localhost:434
  bypass:
    - http://localhost:8080
    - http://host:434
    - http://somethingelse:32
pac proxy

Configures WebDriver to configure the browser proxy using the PAC file at the given URL.
selenium-side-runner --proxy-type=pac --proxy-options="http://localhost/pac"

proxyType: pac
proxyOptions: http://localhost/pac
socks proxy

Creates a proxy configuration for a socks proxy.
selenium-side-runner --proxy-type=socks --proxy-options="socksProxy=localhost:434 socksVersion=5"

proxyType: socks
proxyOptions:
  socksProxy: localhost:434
  socksVersion: 5
system proxy

Configures WebDriver to use the current system's proxy.
selenium-side-runner --proxy-type=system

proxyType: system

FAQ

I'm getting an error similar to Unknown locator ${vars.something}

When running your projects make sure that the command is aware of the locator strategy before variables are evaluated.
For example click | id=${myButton} vs click | ${idOfMyButton}.
Always use the first one, since the strategy is hardcoded in the command, the second would yield an error.

4.0.10

5 months ago

4.0.12

4 months ago

4.0.11

5 months ago

4.0.8

6 months ago

4.0.6

6 months ago

4.0.5

7 months ago

4.0.4

8 months ago

4.0.3

8 months ago

4.0.2

8 months ago

4.0.1

8 months ago

4.0.0-alpha.71

9 months ago

4.0.0-alpha.70

9 months ago

4.0.0-alpha.69

10 months ago

4.0.0-alpha.68

10 months ago

4.0.0-alpha.67

10 months ago

4.0.0-alpha.66

10 months ago

4.0.0-alpha.65

10 months ago

4.0.0-alpha.64

10 months ago

4.0.0-alpha.63

11 months ago

4.0.0-alpha.62

11 months ago

4.0.0-alpha.60

1 year ago

4.0.0-alpha.61

12 months ago

4.0.0-alpha.59

1 year ago

4.0.0-alpha.58

1 year ago

4.0.0-alpha.53

1 year ago

4.0.0-alpha.52

1 year ago

4.0.0-alpha.51

1 year ago

4.0.0-alpha.50

1 year ago

4.0.0-alpha.57

1 year ago

4.0.0-alpha.56

1 year ago

4.0.0-alpha.55

1 year ago

4.0.0-alpha.54

1 year ago

4.0.0-alpha.49

1 year ago

4.0.0-alpha.48

1 year ago

4.0.0-alpha.47

1 year ago

4.0.0-alpha.42

2 years ago

4.0.0-alpha.41

2 years ago

4.0.0-alpha.40

2 years ago

4.0.0-alpha.46

2 years ago

4.0.0-alpha.45

2 years ago

4.0.0-alpha.44

2 years ago

4.0.0-alpha.43

2 years ago

4.0.0-alpha.39

2 years ago

4.0.0-alpha.38

2 years ago

4.0.0-alpha.37

2 years ago

4.0.0-alpha.17

2 years ago

4.0.0-alpha.16

2 years ago

4.0.0-alpha.15

2 years ago

4.0.0-alpha.18

2 years ago

4.0.0-alpha.36

2 years ago

4.0.0-alpha.31

2 years ago

4.0.0-alpha.30

2 years ago

4.0.0-alpha.35

2 years ago

4.0.0-alpha.34

2 years ago

4.0.0-alpha.33

2 years ago

4.0.0-alpha.32

2 years ago

4.0.0-alpha.28

2 years ago

4.0.0-alpha.27

2 years ago

4.0.0-alpha.26

2 years ago

4.0.0-alpha.25

2 years ago

4.0.0-alpha.29

2 years ago

4.0.0-alpha.24

2 years ago

4.0.0-alpha.23

2 years ago

4.0.0-alpha.22

2 years ago

4.0.0-alpha.21

2 years ago

3.17.0

5 years ago

3.16.0

5 years ago

3.15.0

5 years ago

3.14.0

5 years ago

3.13.0

5 years ago

3.12.2

5 years ago

3.12.1

5 years ago

3.12.0

5 years ago

3.11.0

5 years ago

3.9.0

5 years ago

3.8.0

5 years ago

3.7.4

6 years ago

3.7.3

6 years ago

3.7.1

6 years ago

3.6.1

6 years ago

3.6.0

6 years ago

3.5.12

6 years ago

3.5.11

6 years ago

3.5.10

6 years ago

3.5.9

6 years ago

3.5.8

6 years ago

3.5.6

6 years ago

3.5.5

6 years ago

3.5.4

6 years ago

3.5.3

6 years ago

3.5.1

6 years ago

3.5.0

6 years ago

3.5.0-beta.0

6 years ago

3.5.0-alpha.0

6 years ago

3.4.2

6 years ago

3.4.0

6 years ago

3.3.1

6 years ago

3.3.0

6 years ago

3.2.5

6 years ago

3.2.4

6 years ago

3.2.0

6 years ago

3.2.0-beta.5

6 years ago

3.2.0-beta.4

6 years ago

3.2.0-beta.3

6 years ago

3.2.0-beta.2

6 years ago

3.2.0-beta.1

6 years ago

0.7.0

6 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.0

7 years ago