Skip to content

Commit

Permalink
fix: 漏了设置到全局变量
Browse files Browse the repository at this point in the history
  • Loading branch information
YeungHoiChiu committed Jun 6, 2024
1 parent c1ca5dc commit a25c291
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,7 @@ public void obtainElementAttr(HandleContext handleContext, String des, String se
String[] xy2 = parts[1].substring(0, parts[1].length() - 1).split(",");
String attrValue = (Integer.parseInt(xy2[0]) + Integer.parseInt(xy[0])) / 2 + "," + (Integer.parseInt(xy2[1]) + Integer.parseInt(xy[1])) / 2;
log.sendStepLog(StepType.INFO, "", attr + " 属性获取结果: " + attrValue);
globalParams.put(variable, attrValue);
return;
}
String attrValue = findEle(selector, pathValue).getAttribute(attr);
Expand Down

0 comments on commit a25c291

Please sign in to comment.