Appendix C. Examples Repository Setup

The examples repository is a vital ingredient of this book as it contains all the covered examples and the complete configuration of Maven and Gradle. In addition, this repo uses several services provided by GitHub, such as:

GitHub Pages

A service that allows hosting public websites configured straight from a GitHub repository. I use a simple website linked to the examples repository to showcase web pages used as SUT in the Selenium WebDriver test examples: https://bonigarcia.dev/selenium-webdriver-java. As you can see, it contains different HTML pages using Bootstrap as a CSS framework.

GitHub Actions

A CI/CD build server for GitHub repositories. I use this service to build and test the whole repo with each new commit. You can see the details about the workflow configuration at the end of this section.

Dependabot

A bot that automatically updates the project dependencies. When this bot detects a new version for any Maven and Gradle dependencies (see the following subsection for more details), it creates a pull request with the corresponding update.

In the rest of this appendix, you will find the configuration details for the examples repository. This configuration includes the Maven and Gradle dependencies declaration and other aspects, and it should be sufficient for standard projects using Selenium WebDriver. In addition, the final part of this appendix explains how to configure the logging libraries, Dependabot, and GitHub Actions ...

Get Hands-On Selenium WebDriver with Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.