Skip to content

UI Test Automation Selenium

sharonO13 edited this page Jul 26, 2021 · 1 revision

Framework

The main premise behind the Framework is the use of the Page Object Model detailed below. This is aided by a WebDriverHelper Class that is used to manage the WebDriver instance, manage errors should they occur and add to the code readability.

Page Object Model

The Page Object Model is a design pattern in Selenium for managing Web Elements. It uses a class to story the web elements, managing these like an object repository. Page Object Model

WebDriverHelper

The WebDriver Helper manages WebDriver instance, it has functionality to launch Chrome locally (provided the ChromeDriver is stored in the following location (C:\SeleniumDriver) or a **RemoteWebDriver **can be used to execute on a the likes of a Docker Container.

ChromeDrivers can be downloaded from the following location - ChromeDriver the version of the ChromeDriver must match the version of your Chrome Installation.

Test Execution

Local test execution

To run the tests locally, navigate to the test/ui/testautomation folder and run the mvn test command.

Container Execution