Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Pangea-Agent
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gavin-Group
Pangea-Agent
Commits
07a094e4
Commit
07a094e4
authored
Dec 26, 2025
by
youxiaoji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* [每次执行提交动作之后清空已保存的数据]
* [滚动轴操作使用dispatchEvent进行点击]
parent
59f7f0e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
VisitorAppointmentTool.java
...java/pangea/hiagent/tool/impl/VisitorAppointmentTool.java
+3
-1
InfoCollectorService.java
...java/pangea/hiagent/web/service/InfoCollectorService.java
+3
-0
No files found.
backend/src/main/java/pangea/hiagent/tool/impl/VisitorAppointmentTool.java
View file @
07a094e4
...
...
@@ -221,7 +221,7 @@ public class VisitorAppointmentTool {
page
.
getByRole
(
AriaRole
.
BUTTON
,
new
Page
.
GetByRoleOptions
().
setName
(
values
[
1
]
+
"月"
)).
click
();
Locator
dayColumn
=
page
.
locator
(
".van-picker-column"
).
nth
(
2
);
Locator
targetDay
=
dayColumn
.
locator
(
"li"
).
filter
(
new
Locator
.
FilterOptions
().
setHasText
(
values
[
2
]
+
"日"
));
targetDay
.
click
(
);
targetDay
.
dispatchEvent
(
"click"
);
//page.getByRole(AriaRole.BUTTON, new Page.GetByRoleOptions().setName(values[2] + "日")).click();
// 点击确认
...
...
@@ -250,6 +250,8 @@ public class VisitorAppointmentTool {
log
.
warn
(
"关闭页面时发生异常: {}"
,
e
.
getMessage
());
}
}
infoCollectorService
.
clearValue
();
// sharedContext.tracing().stop(new Tracing.StopOptions()
// .setPath(Paths.get("trace1.zip")));
}
...
...
backend/src/main/java/pangea/hiagent/web/service/InfoCollectorService.java
View file @
07a094e4
...
...
@@ -34,6 +34,9 @@ public class InfoCollectorService {
log
.
info
(
"key {} value {}"
,
key
,
value
);
values
.
put
(
key
,
value
);
}
public
void
clearValue
()
{
values
.
clear
();
}
public
void
saveDefaultValue
(
String
pageId
){
JSONArray
jsonArray
=
infos
.
get
(
pageId
);
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment