Skip to content

Neodymium v1.1.0

Compare
Choose a tag to compare
@marcuskaufmann marcuskaufmann released this 04 Jul 16:38
· 917 commits to master since this release

Neodymium v1.1.0

We are pleased to announce that Neodymium has been released in version 1.1.0 🎉

New features

Element highlighting
You can now watch your test case doing stuff. With the introduction of element highlighting you can now see which elements are currently selected by your test case. Thus you are able to debug your code line by line and see which elements are selected. Element highlighting does only apply for Selenide selectors. Both, element as well as collection highlighting is supported.

To activate element highlighting you need to adjust config/test.properties by adding debug.highlight = true. Note: activating element highlighting also reduces test execution speed as the highlighting is done in an animated way which needs some time to render.

Test execution speed
Now you can slow down test execution for debugging purpose. By adding debug.highlight.duration = 500 (or any other reasonable value of course) to config/test.properties a waiting time of 500 milliseconds is applied for every Selenide selection. Thus the execution stops for the specified amount of time and continues after this time has expired.

Insecure certificates
Multi-browser support was extended to accept insecure certificates when necessary. The Boolean property must be set explicitly for your browser in order accept insecure certificates.

Example: config/browser.properties

# .acceptInsecureCertificates:
#     A Boolean property that decides whether the web driver accepts insecure certificate or not.
#     The default behavior is the one of the used web driver.
#         true:  the browser accepts insecure certificates
#         false: the browser does not accepts insecure certificates
browserprofile.<browser tag>.acceptInsecureCertificates = true

Additional browser options
You can now specify additional browser arguments/options to your browser configuration. Note: Firefox uses a single dash - for arguments while Chrome uses a double dash -- (-headless vs. --headless). Luckily Chrome does also support the single dash notation that's why we suggest to use always a single dash for arguments.
Furthermore since you can not have multiple arguments attributes you need to put them into a single line. Do so by concatenate them with a semicolon, see the example below.

# .arguments: Additional command line arguments for the browser to apply.
#             As you can specify only on 'arguments' property for a browser at a time you need to chain multiple arguments.
#             Multiple arguments are chained by semicolon (";") e.g.: `-window-position=0,0 ; -window-size=400,300`
browserprofile.<browser tag>.arguments = -profile-directory=/path/to/profile; -headless;

Maven central
With this release Neodymium is available in maven central. So you don't need any special repository entry in your projects pom to find Neodymium.

Updates

Updated Selenide
Selenide dependency has been updated from 4.10.01 to 4.12.2