Selenium/Getting Started/Create a simple test

This tutorial will assume that you are running tests from your machine, targeting MediaWiki-Docker.

A similar example is available as 5 and 17 minute videos. For more examples see Selenium/How-to/Create the first test in a repository page and Selenium/Reference/Example Code.

Let's write a new simple test for MediaWiki Core. For example,  is one of the rare pages that does not have   link. Let's write a test to check that.

Code
Following code is available at 345378.

A new test file should be created:

A new page object file should be created:

Run Selenium tests
To run all tests, run this from MediaWiki Core folder:

To run just the new test file: