Skip to content

Neodymium v3.0.0

Compare
Choose a tag to compare
@occupant23 occupant23 released this 23 Oct 08:22
· 823 commits to master since this release

The major train is running again. 🚂woop... Woop... WOOP... 🎉

We improved and adjusted our ways to configure Neodymium again. Unfortunately those changes could require some changes. Make sure to implement the following:

  • WebDriver configuration: Maybe you configured the path to the WebDriver executable or turned on the "keep browser open on failure" feature. All properties starting with neodymium.webDriver must be moved from browser.properties into neodymium.properties.
  • ProxyConfiguration: Needs to be moved for proxy.properties into neodymium.properties
  • Add the line dev-*.properties to your .gitignore file in order to prevent the development properties files to be committed and pushed by accident
  • The collectionsTimeout configuration was removed since it not supported by Selenide anymore. (BTW: This is now also covered by the standard timeout setting)

Features:

  • Configuration/Overwriting neodymium.properties is implemented in the following way:
    • the standard way via config/neodymium.properties
    • configure your development environment via config/dev-neodymium.properties (This file should not be committed)
    • a temporary properties file to change the configuration for a single test case during runtime (ConfigFactory.setProperty("neodymium.temporaryConfigFile", "file:PATH/[temporaryFile].properties")
    • System.getProperties() (passing configuration properties via the -D switch on command line)
    • System.getenv() (set configuration properties via your your system environment e.g. PATH)
  • Configuration/Overwriting browser.properties is implemented in the following way:
    • the standard way via config/browser.properties
    • configure your development environment via config/dev-browser.properties (This file should not be committed)
  • Configuration/Overwriting credentials.properties is implemented in the following way:
    • the standard way via config/credentials.properties
    • configure your development environment via config/dev-credentials.properties (This file should not be committed)
  • Some shortcuts to configure Selenide via the Neodymium class (e.g. Turn on SoftAssertion, Turn on web site manipulation via JavaScript)
  • A condition to validate attributes of an element using a regular expression via SelenideAddons.matchAttribute
  • A helper method to pass information to the Allure report AllureAddons.addToReport

Bugfixes:

  • Fixed a bug that prevented the usage of some methods in Neodymium class since the were not implemented as static functions.

Updates:

  • Selenide 5.0.0