Boolean EleWNote=this.commonMethods.elementIsVisible(WireNote);
if(EleWNote = true) {
testStep.log(LogStatus.PASS, "The Element displayed " + wirenote + " successfully");
} else {
testStep.log(LogStatus.FAIL, "The Element displayed " + wirenote + " not successful");
}
This the part of my code where i give the method and in brackets the web element name and i gave the wrong X path to the web element and it should show me that the element displayed wire note is not successful. but it shows successful.