Selenium/How-to/Use MediaWiki API

This tutorial will assume that you are running tests from your machine, targeting MediaWiki-Docker. Code from this page is available at 675813. For more examples see Selenium/Reference/Example Code.

You can use the MediaWiki action API for testing, reusing parts of Selenium/Explanation/Stack, but without Selenium.

In this example, we will check if a page exists using MediaWiki action API.

Stack
The stack:

Advantages

 * Assertions.
 * Testing framework (setup, teardown, reporting...).

Disadvantages

 * Several new tools to learn.