Selenium IDE

See this video for a tutorial to create a test. Remember to save the test as a .side file.

You can also install the Chrome version in Opera.

Selenium SIDE Runner

Install

Follow the official installation guide to install it.

In the same folder where *.side tests are saved to, yarn add selenium-webdriver.

Run *.side tests in Google Chrome

brew cask info chromedriver since we want to run *.side tests in Google Chrome.

In the same folder where *.side tests are saved to:

selenium-side-runner *.side

Headless mode:

selenium-side-runner --capabilities chromeOptions.args=[headless] *.side

Headless mode then visual mode if failed

if ! selenium-side-runner --capabilities chromeOptions.args=[headless] *.side; then
  selenium-side-runner *.side
fi

Configure via .side.yml file

capabilities:
  browserName: "chrome"
  chromeOptions:
    args:
      - headless

Run *.side tests in Mozilla Firefox

brew install geckodriver since we want to run *.side tests in Mozilla Firefox.

In the same folder where *.side tests are saved to:

selenium-side-runner --capabilities 'browserName=firefox platform=MAC' *.side

Headless mode:

selenium-side-runner --capabilities 'browserName=firefox platform=MAC moz:firefoxOptions.args=[-headless]' *.side

Headless mode then visual mode if failed

if ! selenium-side-runner --capabilities 'browserName=firefox platform=MAC moz:firefoxOptions.args=[-headless]' *.side; then
  selenium-side-runner --capabilities 'browserName=firefox platform=MAC' *.side
fi

Run *.side tests in Opera

brew cask install operadriver since we want to run *.side tests in Opera.

In the same folder where *.side tests are saved to:

selenium-side-runner --capabilities 'browserName=opera platform=MAC' *.side