Version 1.16.x
Hide Sensitive Data in Reports and Logs
You can now annotate sensitive WebElements with the @Secured
annotation like this:
import io.github.giulong.spectrum.interfaces.Secured;
@FindBy(id = "password")
@Secured
private WebElement password;
This will ensure no password will be logged in plain text nor it will be added to the reports.
More on this in the Secured WebElements docs