Skip to content

Aquality Selenium is a library built over Selenium WebDriver tool that allows to automate work with web browsers. Selenium WebDriver requires some skill and experience. So, Aquality Selenium suggests simplified and most importantly safer and more stable way to work with Selenium WebDriver.

License

Notifications You must be signed in to change notification settings

aquality-automation/aquality-selenium-java

Repository files navigation

Overview

This package is a library designed to simplify your work with Selenium WebDriver.

You've got to use this set of methods, related to most common actions performed with web elements.

Most of performed methods are logged using LOG4J, so you can easily see a history of performed actions in your log.

We use interfaces where is possible, so you can implement your own version of target interface with no need to rewrite other classes.

Quick start

  1. To start work with this package, simply add the dependency to your pom.xml:
<dependency> <groupId>aquality-automation</groupId> <artifactId>aquality.selenium</artifactId> <version>0.0.1</version> </dependency> 
  1. Add configuration file settings.json to resources folder (usually src/test/resources)

  2. Create instance of Browser:

Browser browser = BrowserManager.getBrowser();
  1. Use Browser's methods directly for general actions, such as navigation, window resize, scrolling and alerts handling:
browser.maximize(); browser.goTo("https://wikipedia.org"); browser.waitForPageToLoad()
  1. Add elements you want to interact within the current form as private final fields. Use ElementFactory class's methods to get an instance of each element.
ITextBox txbEmail = new ElementFactory().getTextBox(By.id("email_create"), "Email");
  1. Call element's methods to perform action with element:
txbEmail.type("email@domain.com");
  1. Quit browser at the end
browser.quit(); 

Documentation

To get more details please look at documentation:

About

Aquality Selenium is a library built over Selenium WebDriver tool that allows to automate work with web browsers. Selenium WebDriver requires some skill and experience. So, Aquality Selenium suggests simplified and most importantly safer and more stable way to work with Selenium WebDriver.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 13