-
Notifications
You must be signed in to change notification settings - Fork 11
Highlight and Wait
Sometimes debugging or analyzing a test automation using Selenium based WebDriver can be cumbersome. You can't see which was the last selector that matched or the test execution is so fast that your are not able to see whats happening. For such cases we added the following feature.
Every element matching the current selector will be marked. This means that a chain of Selenide selectors results in a chain of highlighted elements. For example the following $('body').find('header');
will result in two highlights the first will mark the whole body while the second will mark only the header.
Highlighting an element takes as long as the configured duration. Afterwards the highlights are reset so that nothing interferes with the next action.
In case no duration is specified we use 100 milliseconds as default duration.
The configurations are stored in the file config/neodymium.properties
Property | Description |
---|---|
neodymium.debugUtils.highlight | a boolean that decides wether or not a highlighting is activated |
neodymium.debugUtils.highlight.duration | is the duration of the highlight in milliseconds |
neodymium.debugUtils.highlight = true
neodymium.debugUtils.highlight.duration = 100
Highlighting currently does not work with shadow dom elements. Therfore it should be deactivated before testing them.
Overview
Neodymium features
- Neodymium configuration properties
- Neodymium context
- Utility classes
- Test data provider
- Test Environments
- Multi browser support
- Applitools Plugin
- Localization
- Highlight and Wait
Best practices and used frameworks
Special