Can I use @Snap annotation & code inside @Keyword annotation or create new testcase? below is my code:
@Snap(“RichFace.png”)
public class RichFace {
private final WebDriver driver;
public RichFace(WebDriver driver) {
this.driver = driver;
}
public OcularResult compare() {
return Ocular.snapshot().from(this)
.sample().using(driver)
.compare();
}
}