Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amazon_reports
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
0
Merge Requests
0
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
common
amazon_reports
Commits
070a860c
Commit
070a860c
authored
Dec 09, 2025
by
邱阿朋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(advert_cost): 处理分页按钮不存在的情况
- 添加判断分页按钮是否存在的逻辑 - 不存在时记录调试日志并跳过翻页操作 - 避免因缺少分页按钮导致的异常或错误
parent
a9b532d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
advert_cost.py
app/vc/advert_cost.py
+5
-0
No files found.
app/vc/advert_cost.py
View file @
070a860c
...
...
@@ -89,6 +89,11 @@ class AdvertCost(AutoInterface):
self
.
page
.
ele
(
apply
)
.
click
()
time
.
sleep
(
5
)
# 判断分页按钮是否存在
if
self
.
page
.
ele
(
'#products_view:products_view:pagination-dropdown'
,
timeout
=
5
)
is
None
:
self
.
logger
.
debug
(
"分页按钮不存在,跳过翻页"
)
return
# 点击分页按钮
dropdown
=
'#products_view:products_view:pagination-dropdown'
self
.
page
.
wait
.
eles_loaded
(
dropdown
)
...
...
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