In my testing framework I've got a method called 'isElementDisplayed'.
public boolean isElementDisplayed(WebElement element) {
try {
logger.info(element);
return element.isDisplayed();
} catch (NoSuchElementException e) {
return false;
}
}
After execute logger write to file specification of webelement like:
[[ChromeDriver: chrome on XP (hash)] -> id: idofelement]
How can I make it shorter just like:
[id: idofelement]
It there any possibility to cut unnecessary beginning?