Enhancing error log output in case of failures in waitForElementToBePresent()