org.sitoolkit.tester.infra.ElementNotFoundException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sit-wt Show documentation
Show all versions of sit-wt Show documentation
SIToolkit for Web Testing
The newest version!
package org.sitoolkit.tester.infra;
import org.sitoolkit.tester.domain.test.Locator;
public class ElementNotFoundException extends RuntimeException {
public ElementNotFoundException() {
super();
}
public ElementNotFoundException(String message, Throwable cause, boolean enableSuppression,
boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
public ElementNotFoundException(String message, Throwable cause) {
super(message, cause);
}
public ElementNotFoundException(String message) {
super(message);
}
public ElementNotFoundException(Throwable cause) {
super(cause);
}
public static ElementNotFoundException create(Locator locator, Throwable cause) {
String message = buildMessage(locator);
return new ElementNotFoundException(message, cause);
}
private static String buildMessage(Locator locator) {
return "ロケーター(" + locator + ")で指定される要素は画面上で見つかりませんでした。"
+ "ロケーターが誤っているか、操作のタイミングが早い可能性があります。";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy