Obscure¶
-
public class
Obscure
extends Images.Obscure implements AutoCloseable¶ class that allows to hide elements temporarily. This is useful when doing visual testing, while ignoring elements that are not interesting for the test. For example - testing a chart while ignoring certain labels. This is an Autocloseable: it reverts to the original state when leaving the try{} block.
Constructors¶
Obscure¶
Obscure¶
Obscure¶
-
public
Obscure
(List<Path> elements, boolean strict)¶ Make the elements matching the given paths temporarily hidden. In case there are multiple matches, it will hide the first one.
Parameters: - elements – the elements to obscure
- strict – in strict mode, if the element is not found, it throws am exception and stops