提交 fd9ef6e6 authored 作者: 黄承天's avatar 黄承天

调整了判断布局的顺序

上级 3bda7a24
......@@ -210,20 +210,20 @@ public class SeleniumExecutor {
long responseTime = -1L;
boolean success = false;
try {
Boolean locationMatch = checkLocation(element);
if (!locationMatch) {
message = "布局错误";
log.error("error:布局错误");
historyAttributes.add(attributes);
currentHistoryAttributes.add(attributes);
return new ElementDetail(
type,
(int) responseTime,
false,
message
);
}
if (isEnabled(element)) {
Boolean locationMatch = checkLocation(element);
if (!locationMatch) {
message = "布局错误";
log.error("error:布局错误");
historyAttributes.add(attributes);
currentHistoryAttributes.add(attributes);
return new ElementDetail(
type,
(int) responseTime,
false,
message
);
}
long startTime = System.currentTimeMillis();
if (Objects.equals(actType, INPUT)) {
log.info("Input操作 元素 ----- tag:[{}] ------ text:[{}] ---- attrs:[{}]", element.getTagName(), element.getText(), attributes);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论