Neodymium properties

Everything you can configure in the Neodymium properties.

This chapter contains all information about the Neodymium properties.

Configuration via Properties Files

Neodymium combines a couple of frameworks that all have their own configuration needs which also effects test execution. Most of these properties can be defined/overwritten with environment variables. However since this is an awkward way of configuration we introduced the file: config/neodymium.properties The file contains a collection of properties that is used to configure some aspects of the used frameworks. It doesn’t cover all the possible configurations for all the frameworks we’ve integrated. Have a look at this file since it lists all supported properties as well as their default values and its purpose.

We use Owner a framework to write powerful and flexible properties in order to avoid writing all the boilerplate code. If you are in need of your own set of global properties we encourage you to give Owner a try.

Neodymium Properties

The following properties can be configured in the config/neodymium.properties file and can be accessed via Neodymium.configuration().[propertyGetterMethod]().

Those properties can be overwritten in the following way (The system environment overwrites everything):

  • 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 system environment e.g. PATH)

decide to use the following text or the info box

The Order in which the properties are loaded is as follows:

  1. System properties
  2. temporary config file (e.g. config/temp-neodymium.properties)
  3. config/dev-neodymium.properties
  4. System environment variables
  5. config/credentials.properties
  6. config/neodymium.properties

If one property exists in multiple of those places. The value of the higher ranking file is taken. This makes it possible to define config/dev-neodymium.properties for local testing without changing the setup for CI/CD, which is quite useful.

The next sections contain all properties which can be configured in Neodymium.

**sort** properties! and maybe combine them under a fitting heading?

add missing descriptions

URL

PropertyDefault valueDescription
neodymium.url<none>The URL of the web site to test
neodymium.url.protocol<none>The protocol used to access the site
neodymium.url.host<none>The host encoded in the URL
neodymium.url.path<none>The path on the site that is used as test entry point
neodymium.url.site<none>The site/channel part of the url
neodymium.url.includeList<none>A list of URLs that the test is allowed to visit separated by whitespaces
neodymium.url.excludeList<none>A list of URLs that the test is forbidden to visit separated by whitespaces

Localization

PropertyDefault valueDescription
neodymium.localeen_USThe locale that should be used to lookup translations in localization feature
neodymium.localization.fileconfig/localization.yamlPath to the YAML formatted file that contains localized (translated) data for the site

Basic authentication

PropertyDefault valueDescription
neodymium.basicauth.username<none>Username that should be used for basic authentication
neodymium.basicauth.password<none>Password that should be used for basic authentication

Selenide

PropertyDefault valueDescription
neodymium.selenide.timeout3000 msHow long should Selenide wait to match a condition
neodymium.selenide.fastSetValuefalseThe values of input field will be set via JavaScript
neodymium.selenide.clickViaJsfalseThe clicks will be executed via JavaScript

Debugging

PropertyDefault valueDescription
neodymium.debugUtils.highlightfalseShould elements highlighted that are selected by Selenide
neodymium.debugUtils.highlight.duration100 msHow long should an element be highlighted
neodymium.junit.viewmodetreeHow to display test execution in Eclipse JUnit view.
  • tree: a hierarchical representation
  • flat: a flat list of tests

Neodymium context

Responsive design breakpoints. Determines at which page width a site is considered to be displayed on a small, medium, large oder extra large device.

PropertyDefault valueDescription
neodymium.context.device.breakpoint.small576 pixelMaximum browser width for extra small devices (0 - 576)
neodymium.context.device.breakpoint.medium768 pixelMaximum browser width for small devices (577 - 768)
neodymium.context.device.breakpoint.large992 pixelMaximum browser width for medium devices (769 - 992)
neodymium.context.device.breakpoint.xlarge1200 pixelMaximum browser width for large devices (993 - 1200)
neodymium.context.random.initialValue<none>Initial random seed which will be use to initialize Neodymiums Random instance

JavaScriptUtils

PropertyDefault valueDescription
neodymium.javaScriptUtils.timeout2000 msThe amount of time to wait until JavaScript is considered to finished execution. Used by until function of JavaScriptUtils.
neodymium.javaScriptUtils.pollingInterval200 msThe interval at which “until” function checks whether conditions are fulfilled.
neodymium.javaScriptUtils.jQueryIsRequiredtrueIndicates that jQuery must be on the page and available in order to count the site as loaded.
neodymium.javaScriptUtils.loading.animationSelector<none>Designed to select a loading animation to indicate if site loading has finished or not.

Proxy

HTTP proxy settings. Specify host and port of the proxy server and whether it should be used at all. If the proxy requires user authentication, make sure to provide the credentials needed. You may also configure a comma separated list of hosts that can be used directly, thus bypassing the proxy. Note that the host definitions are interpreted as regular expressions so ensure proper use of escape characters. Beside the config/neodymium.properties file the proxy configuration can be also be configured within a config/proxy.properties file. In case you need a separate file for CI environments.

PropertyDefault valueDescription
neodymium.proxyfalseDecide whether or not a proxy is used
neodymium.proxy.host<none>The host of the proxy
neodymium.proxy.port<none>The port of the proxy
neodymium.proxy.bypassForHosts<none>The hosts that bypass the proxy
neodymium.proxy.socket.userName<none>The socket username of the proxy
neodymium.proxy.socket.password<none>The socket password of the proxy
neodymium.proxy.socket.version<none>The socket version of the proxy
neodymium.selenideProxyfalseEnables Selenide Network Mock

Local proxy

The following settings can be used to set up an embedded local proxy. The proxy can be used with a (self-signed) certificate to authenticate the proxy that acts as a man in the middle (MITM). This certificate can be provided by the user or generated on the fly.

PropertyDefault valueDescription
neodymium.localproxyfalseCreate a local proxy to use it for basic authentication, header manipulations or similar things
neodymium.localproxy.certificatefalseShould a self signed certificate be used for the MITM proxy
neodymium.localproxy.certificate.generatetrueDecides if a certificate should be created on the fly
neodymium.localproxy.certificate.archiveFile./config/Certificates.p12The path to the certificate archive file that contains the root certificate for the MITM proxy
neodymium.localproxy.certificate.archivetypePKCS12The type of the certificate archive
neodymium.localproxy.certificate.name<none>The name of the root certificate for the MITM proxy
neodymium.localproxy.certificate.password<none>The password of the root certificate for the MITM proxy

Browser behavior

The browser behavior describes how the browser in general conducts during test. There are a couple of properties that you can use to alter that.

PropertyDefault valueDescription
neodymium.webDriver.reuseDriverfalseA boolean property indicating whether to use a single driver instance for all tests
neodymium.webDriver.maxReuse-1The number of reuses. If not specified or set below 1 the driver will be reused unlimited times. Setting the property to 1 means that the driver is reused once, so the web driver is used twice in total.
neodymium.webDriver.keepBrowserOpenfalseA boolean property indicating whether to keep browser open after test has finished
ATTENTION: The WebDriver process might stay alive even if you close the browser afterwards
neodymium.webDriver.keepBrowserOpenOnFailurefalseA boolean property indicating whether to keep the browser instance open only if the test fails
ATTENTION: The WebDriver process might stay alive even if you close the browser afterwards
neodymium.webDriver.startNewBrowserForSetUptrueA boolean property indicating whether to start a new browser for the setup
neodymium.webDriver.startNewBrowserForCleanUptrueA boolean property indicating whether to start a new browser for the cleanup
neodymium.webDriver.chrome.pathToDriverServer<none>The path to the chromedriver e.g. neodymium.webDriver.chrome.pathToDriverServer = C:/dev/webdriver/chromedriver.exe
neodymium.webDriver.chrome.pathToBrowser<none>The path to the chrome browser
neodymium.webDriver.chrome.driverArguments""The chromedriver arguments as a semicolon separated list e.g. --allowed-origins=localhost, xceptance.com; --log-level=INFO;
neodymium.webDriver.firefox.pathToDriverServer<none>The path to the geckodriver
neodymium.webDriver.firefox.pathToBrowser<none>The path to the firefox browser
neodymium.webDriver.firefox.driverArguments""The geckodriver arguments as a semicolon separated list
neodymium.webDriver.ie.pathToDriverServer<none>The path to the ie-driver
neodymium.webDriver.ie.driverArguments""The ie-driver arguments as a semicolon separated list
neodymium.webDriver.edge.pathToDriverServer<none>The path to the edge-driver
neodymium.webDriver.edge.driverArguments""The edge-driver arguments as a semicolon separated list
neodymium.webDriver.safari.driverArguments""The safari-driver arguments as a semicolon separated list

Test filtering

In some projects, it’s required to execute only the test, the class name, method name, and dataset id of which match the specific regex. To do so, you have to define neodymium.testNameFilter inside of config/neodymium.properties .

SelenideAddons

PropertyDefault valueDescription
neodymium.selenideAddons.staleElement.retry.count3How often should the $safe function try to match a condition if the element is affected by staleness
neodymium.selenideAddons.staleElement.retry.timeout500 msHow long should the $safe function wait between retries in case of element staleness
neodymium.selenideAddons.optional.retry.pollingIntervall3 sHow long should the optionalWait(While/Until)Condition functions wait until it retries the condition
neodymium.selenideAddons.optional.retry.timeout30 sAfter which times should the optionalWait(While/Until)Condition functions stop retrying

AllureAddons

PropertyDefault valueDescription
neodymium.allureAddons.screenshots.perstep.alwaysfalseWhether a screenshot should be taken per step
neodymium.allureAddons.reports.path/build/reports/tests/Path to the allure report

TestData

PropertyDefault valueDescription
neodymium.testData.email.domainvarmail.deThe domain used for the generated email address
neodymium.testData.email.local.prefixtestThe prefix used in email address generation prefix<generated>@domain
neodymium.testData.email.randomCharsAmount12The amount of random chars of the email [a-z0-9]
neodymium.testData.password.uppercaseCharAmount2The amount of capital letters
neodymium.testData.password.lowercaseCharAmount5The amount of small letters
neodymium.testData.password.digitAmount2The amount of digits
neodymium.testData.password.specialCharAmount2The amount of special characters
neodymium.testData.password.specialChars+-#$%&.;,_The special characters that should be used

Work in progress

PropertyDefault valueDescription
neodymium.workInProgressfalseIf true: only tests of a test class annotated with the @WorkInProgress annotation are executed, otherwise all will be executed

Advanced screenshot

PropertyDefault valueDescription
neodymium.screenshots.enableAdvancedScreenshotsfalseEnables advanced screenshot capabilities with additional features
neodymium.screenshots.enableOnSuccessfalseControls whether screenshots are taken for successful test scenarios
neodymium.screenshots.fullpagecapture.enablefalseEnables full-page screenshot capture, capturing entire page content beyond visible viewport
neodymium.screenshots.fullpagecapture.highlightViewportfalseDetermines if the current viewport should be visually highlighted during full-page capture
neodymium.screenshots.fullpagecapture.highlightColor#FF0000Sets the highlight color for the viewport during full-page capture
neodymium.screenshots.blurFullPageScreenshotfalseBlurs the part outside the viewport of full-page screenshots
neodymium.screenshots.highlightLastElementfalseEnables highlighting of the last interacted or focused element in the screenshot
neodymium.screenshots.element.highlightColor#FF00FFSets the highlight color for the last element
neodymium.screenshots.highlightLineThickness4Defines the thickness of highlight lines when elements are marked
neodymium.screenshots.enableTreeDirectoryStructurefalseControls the directory structure for storing screenshots. When false, uses a flat directory structure instead of a nested tree-like structure

Accessibility / Lighthouse

The Lighthouse thresholdScore properties define minimal values the tests need to achieve to pass, otherwise they will fail. Each value rages from 0.0 - 1.0 representing 0% to 100%.

PropertyDefault valueDescription
neodymium.lighthouse.binaryPath“lighthouse”Specifies the path to the Lighthouse executable
  • If Lighthouse is globally installed and available in PATH, use only the name of the Lighthouse binary
  • If Lighthouse is not globally installed and available in PATH, use the absolute/relative path to the Lighthouse binary
neodymium.lighthouse.assert.thresholdScore.performance0.5Specifies the minimum acceptable score for the performance category in Lighthouse reports. The actual value for the performance score varies a lot, so consider using a lower threshold to avoid a lot of false alerts.
neodymium.lighthouse.assert.thresholdScore.accessibility0.5Specifies the minimum acceptable score for the accessibility category in Lighthouse reports.
neodymium.lighthouse.assert.thresholdScore.bestPractices0.5Specifies the minimum acceptable score for the best practices category in Lighthouse reports.
neodymium.lighthouse.assert.thresholdScore.seo0.5Specifies the minimum acceptable score for the seo category in Lighthouse reports.
neodymium.lighthouse.assert.audits<none>A comma separated list of audits to assert. If one fails, the test also fails. A full list of all audit id’s and their corresponding titles can be found here.

Report

PropertyDefault valueDescription
neodymium.report.showSelenideErrorDetailsfalseEnable the saving of links of called pages in the report
neodymium.report.enableTestDataInReporttrueWhether the test data for each test should be added to the report
neodymium.report.environment.enableCustomDatatrueWhether custom environment data can be added to the report
neodymium.report.environment.enableBrowserDatatrueWhether the used browser profile should be added to the report
neodymium.report.enableStepLinkstrueEnable the saving of links of called pages in the report

Selenium log level

PropertyDefault valueDescription
neodymium.seleniumLogLevelSEVERESet the log level for Selenium

We introduced a simple popup blocker to get rid of test affecting popups on a webpage. To use it just configure add a CSS selector which targets the close button of the popup.

PropertyDefault valueDescription
neodymium.popup.<none>Define a pop up and the selector to close it. e.g. neodymium.popup.newsletter = #newsletterbox > button.close
neodymium.popupInterval1000 msThe delay between two checks for a popup in milliseconds

Credentials properties

Since we support platforms like SauceLabs and BrowserStack there is a need to store credentials to access their service. In order to use these service you need to provide a URL as well as credentials to access. Both platforms use Selenium Grid protocol which is used to remote control a web browser in the cloud. You can also set up your own browser cloud with Selenium Grid.

Look at the credentials template. It’s designed for accessing only browser automation services which usually use a URL, username and a password respective access key. These credentials are necessary to access the services that allow you to use remote browser to execute your tests. SauceLabs usually doesn’t use a password. They use an access key which is different from your password and which can be accessed through their website. So keep that in mind if you want to use such services.

In the example below there is a Firefox configuration that references the SauceLabs account from credentials file. The connection is made by the key pattern of the credentials file. browserprofile.testEnvironment.saucelabs.* defines a test environment named saucelabs which can be referenced in the browser settings as a testEnvironment. That actually means that in order to create that particular web driver defined in browser.properties the information from credentials.properties will be taken into account.

Here are the example properties from the paragraph above.

First the config/credentials.properties:

## Sauce Labs Credentials
browserprofile.testEnvironment.saucelabs.url=https://ondemand.saucelabs.com:443/wd/hub
browserprofile.testEnvironment.saucelabs.username=MyAccount
browserprofile.testEnvironment.saucelabs.password=secret

Second the config/browser.properties:

browserprofile.FF_1024x768.name=Firefox
browserprofile.FF_1024x768.browser=firefox
browserprofile.FF_1024x768.browserResolution=1024x768
browserprofile.FF_1024x768.testEnvironment=saucelabs

Browser configuration

add browser config or link it to the chapter in multi-browser?

Last modified December 14, 2025: Split quick start (75a2209b)