com.seleniumtests.reporter.info.ImageLinkInfo Maven / Gradle / Ivy
package com.seleniumtests.reporter.info;
import com.seleniumtests.browserfactory.ICapabilitiesFactory;
import com.seleniumtests.util.logging.SeleniumRobotLogger;
import org.apache.log4j.Logger;
public class ImageLinkInfo extends HyperlinkInfo {
public ImageLinkInfo(String link) {
super("Image", link);
}
@Override
public String encode(String format) {
if ("html".equals(format)) {
return String.format("", link);
} else {
if (format != null) {
return super.encode(format);
} else {
logger.error("format cannot be null");
}
}
return description;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy