From a25c291ae843b72a713a2b678132361aa6eb5e66 Mon Sep 17 00:00:00 2001 From: YeungHoiChiu <1005935991@qq.com> Date: Thu, 6 Jun 2024 21:46:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=BC=8F=E4=BA=86=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=88=B0=E5=85=A8=E5=B1=80=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/cloud/sonic/agent/tests/handlers/AndroidStepHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/cloud/sonic/agent/tests/handlers/AndroidStepHandler.java b/src/main/java/org/cloud/sonic/agent/tests/handlers/AndroidStepHandler.java index 854e1622..6451c21f 100755 --- a/src/main/java/org/cloud/sonic/agent/tests/handlers/AndroidStepHandler.java +++ b/src/main/java/org/cloud/sonic/agent/tests/handlers/AndroidStepHandler.java @@ -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);