Automation by YAML file

ui, selenium, webdriver, automation, php-webdriver, automation-ui, php


Tests codecov Latest Stable Version License Latest Unstable Version

AutoMate - Yaml automation library

Release 0.3.0 see the Changelogs

Why AutoMate ?

At work, we need to make a lot of management acts. There is already a homemade framework which works well for this kind of actions. The thing is that it takes a long time to develop and create new scenarios. With AutoMate, I tried reducing this wasted time.

With AutoMate you can :

  • Create multiple scenarios
  • Run them on different browsers
  • Inject data into them to use variable in the scenario and repeat the scenario for each dataset
  • Get logs from files to know which data was used when the scenario failed/successed
  • Have a step by step description written on console


  • Run scenarios as functionnal tests

Getting started


➡️ Install AutoMate with composer

composer install jugid/auto-mate

➡️ Get a Webdriver

➡️ Selenium Grid

You can use Selenium Grid. See Selenium Grid and Selenium Grid 4 Downloads

If you do it, please send a PR with your example and a quick guide.


To use AutoMate, you first need to :

  1. Create your yaml configuration file
  2. Create your scenario file with yaml
  3. Create some folders corresponding to the scenario
  4. Maybe create a specification csv file

➡️ Create you yaml configuration file

Your configuration file should looks like this. You MUST prefer using absolute path.

➡️ Create your scenario file with yaml

A scenario is a list of steps that have to be executed by AutoMate. You also can declare variables and the browser to use for this specific scenario. You can find an example here

Your scenario needs to be named main.yaml and saved in scenario_folder/scenario_name/

➡️ Create some folders corresponding to the scenario

Now you have to create some folders corresponding to the scenario you just created.

  • logs_folder/scenario_name/ : to log the results in details
  • specs_folder/scenario_name/ : to load data in the scenario specification variables scope

➡️ Create your specification file

Specification are csv files that provide data to AutoMate. It will execute the scenario for each lines and load data inside the spec variables scope.

Your specification files need to be saved in specs_folder/scenario_name/my_spec.csv.

Your specification needs to have a header. Otherwise, your variables name will be the data at first line.

You can create the number of specification you want. If AutoMate does not run in Test mode, the spec is renamed with the suffix _PROCESSED when the scenario run ends. The specification cannot be detected if it has _PROCESSED in its name.


This is what AutoMate looks like :

AutoMate Screenshot


First, you can find help on the Wiki. Then if you don't find what you want, you can contact us.


See Changelogs for more information

  • Provide a Proxy management
  • Possibility to import a scenario for reusability
  • Firefox Profile
  • Add a command ajax and js to work with ajax/js
  • Add a configuration command to change configuration at runtime
  • Add a submit command to submit forms
  • Possibility to run scenarios as functionnal tests (new repository ?)
  • Tell us your ideas ! You can directly send a PR or open an issue


We love to have your help to make AutoMate better. See CONTRIBUTING.md for more information about contributing and developing AutoMate


AutoMate is under MIT License. You can find the license file at License.


If you like AutoMate, do not hesitate to tell us how you love it and if you can, contribute.