Commit 1dc90ff8 authored by youxiaoji's avatar youxiaoji

Merge remote-tracking branch 'origin/develop_tmp' into develop_tmp

parents 21954188 7d5df004
...@@ -299,7 +299,7 @@ public class HisenseLbpmApprovalTool extends BaseTool { ...@@ -299,7 +299,7 @@ public class HisenseLbpmApprovalTool extends BaseTool {
} }
// 定位并点击提交按钮 - 尝试新的选择器 // 定位并点击提交按钮 - 尝试新的选择器
String submitButtonSelector = "input[id='process_review_button'][class='process_review_button'][type='button'][value='提交']"; String submitButtonSelector = "input[id='process_review_button']";
log.debug("正在定位提交按钮: {}", submitButtonSelector); log.debug("正在定位提交按钮: {}", submitButtonSelector);
Locator submitButton = page.locator(submitButtonSelector); Locator submitButton = page.locator(submitButtonSelector);
if (submitButton.count() > 0) { if (submitButton.count() > 0) {
...@@ -307,7 +307,7 @@ public class HisenseLbpmApprovalTool extends BaseTool { ...@@ -307,7 +307,7 @@ public class HisenseLbpmApprovalTool extends BaseTool {
log.info("提交按钮点击完成 (使用新选择器)"); log.info("提交按钮点击完成 (使用新选择器)");
} else { } else {
// 如果新选择器未找到元素,尝试原选择器 // 如果新选择器未找到元素,尝试原选择器
submitButtonSelector = "input[id='process_review_button'][class='process_review_button'][type='button'][value='提交']"; submitButtonSelector = "input[id='process_review_button']";
log.debug("新选择器未找到元素,尝试原选择器: {}", submitButtonSelector); log.debug("新选择器未找到元素,尝试原选择器: {}", submitButtonSelector);
submitButton = page.locator(submitButtonSelector); submitButton = page.locator(submitButtonSelector);
if (submitButton.count() > 0) { if (submitButton.count() > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment