Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Songselenium
Overview
Overview
Details
Activity
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
宋鹏博
Songselenium
Commits
006b9f41
Commit
006b9f41
authored
Mar 19, 2025
by
宋鹏博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改元素
parent
762644fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
6 deletions
+30
-6
AiReviewPage.py
paga/AiReviewPage.py
+30
-6
综合书稿.pdf
uifile/综合书稿.pdf
+0
-0
No files found.
paga/AiReviewPage.py
View file @
006b9f41
...
@@ -11,7 +11,8 @@ class Aireview(BasePage):
...
@@ -11,7 +11,8 @@ class Aireview(BasePage):
def
__init__
(
self
):
def
__init__
(
self
):
super
()
.
__init__
(
'web'
)
super
()
.
__init__
(
'web'
)
# 图书审校按钮
# 图书审校按钮
self
.
book_review_btn
=
(
By
.
XPATH
,
"(//label[@class='ant-radio-button-wrapper ant-radio-button-wrapper-checked proofreading-type-box'])[1]"
)
self
.
book_review_btn
=
(
By
.
XPATH
,
"(//label[@class='ant-radio-button-wrapper ant-radio-button-wrapper-checked proofreading-type-box'])[1]"
)
# 文本审校按钮
# 文本审校按钮
self
.
text_revierw_btn
=
(
By
.
XPATH
,
"//div[@class='proofreading-type-checkbox']//div[2]//label[1]"
)
self
.
text_revierw_btn
=
(
By
.
XPATH
,
"//div[@class='proofreading-type-checkbox']//div[2]//label[1]"
)
...
@@ -26,7 +27,8 @@ class Aireview(BasePage):
...
@@ -26,7 +27,8 @@ class Aireview(BasePage):
self
.
find_word_btn
=
(
By
.
XPATH
,
"(//label[@class='ant-radio-button-wrapper proofreading-type-box'])[3]"
)
self
.
find_word_btn
=
(
By
.
XPATH
,
"(//label[@class='ant-radio-button-wrapper proofreading-type-box'])[3]"
)
# 知识查证按钮
# 知识查证按钮
self
.
find_knowledge_btn
=
(
By
.
XPATH
,
"//label[@class='ant-radio-button-wrapper ant-radio-button-wrapper-checked proofreading-type-box']"
)
self
.
find_knowledge_btn
=
(
By
.
XPATH
,
"//label[@class='ant-radio-button-wrapper ant-radio-button-wrapper-checked proofreading-type-box']"
)
# 更多按钮
# 更多按钮
self
.
more_btn
=
(
By
.
XPATH
,
"//div[@class='more-btn']"
)
self
.
more_btn
=
(
By
.
XPATH
,
"//div[@class='more-btn']"
)
...
@@ -47,23 +49,38 @@ class Aireview(BasePage):
...
@@ -47,23 +49,38 @@ class Aireview(BasePage):
self
.
more_find
=
(
By
.
XPATH
,
"(//div[@class='btn-item'])[2]"
)
self
.
more_find
=
(
By
.
XPATH
,
"(//div[@class='btn-item'])[2]"
)
# 优先少误报
# 优先少误报
self
.
few_
d
ind
=
(
By
.
XPATH
,
"(//div[@class='btn-item'])[1]"
)
self
.
few_
f
ind
=
(
By
.
XPATH
,
"(//div[@class='btn-item'])[1]"
)
# 开始审校按钮
# 开始审校按钮
self
.
start_review_btn
=
(
By
.
XPATH
,
"//button[@type='button']"
)
self
.
start_review_btn
=
(
By
.
XPATH
,
"//button[@type='button']"
)
# 示例
# 示例
self
.
example_btn
=
(
By
.
XPATH
,
"//div[@class='proofred_UploadBtn-examplate-btn']//span//span[contains(text(),'示例')]"
)
self
.
example_btn
=
(
By
.
XPATH
,
"//div[@class='proofred_UploadBtn-examplate-btn']//span//span[contains(text(),'示例')]"
)
# 示例知识性差错文件
# 示例知识性差错文件
self
.
example_knowlage_file
=
(
By
.
XPATH
,
f
"//div[@class='example-box']//span[contains(text(),'{example_knowlage_file_name}')]"
)
self
.
example_knowlage_file
=
(
By
.
XPATH
,
f
"//div[@class='example-box']//span[contains(text(),'{example_knowlage_file_name}')]"
)
# 示例内容风险文件
# 示例内容风险文件
self
.
example_Content_risk_file
=
(
By
.
XPATH
,
f
"//div[@class='example-box']//span[contains(text(),'{example_Content_risk_file_name}')]"
)
self
.
example_Content_risk_file
=
(
By
.
XPATH
,
f
"//div[@class='example-box']//span[contains(text(),'{example_Content_risk_file_name}')]"
)
# 审校记录
# 审校记录
self
.
review_record
=
(
By
.
XPATH
,
"//span[contains(text(),'审校记录')]"
)
self
.
review_record
=
(
By
.
XPATH
,
"//span[contains(text(),'审校记录')]"
)
# 多媒体审校编辑勾选
self
.
media_editor
=
(
By
.
XPATH
,
"//span[@class='ant-checkbox']//input[@value='media']"
)
# 公式编辑勾选
self
.
formula_editor
=
(
By
.
XPATH
,
"//span[@class='ant-checkbox']//input[@value='formula']"
)
# 查重编辑勾选
self
.
duplicate_editor
=
(
By
.
XPATH
,
"//span[@class='ant-checkbox']//input[@value='duplicate']"
)
# 参考文献审校编辑勾选
self
.
reference_editor
=
(
By
.
XPATH
,
"//span[@class='ant-checkbox']//input[@value='reference']"
)
# 图书审校
# 图书审校
def
book_review
(
self
,
updata_path
):
def
book_review
(
self
,
updata_path
):
time
.
sleep
(
5
)
time
.
sleep
(
5
)
...
@@ -77,6 +94,13 @@ class Aireview(BasePage):
...
@@ -77,6 +94,13 @@ class Aireview(BasePage):
time
.
sleep
(
10
)
time
.
sleep
(
10
)
self
.
find_ele
(
self
.
more_find
)
.
click
()
self
.
find_ele
(
self
.
more_find
)
.
click
()
time
.
sleep
(
10
)
time
.
sleep
(
10
)
self
.
find_ele
(
self
.
media_editor
)
.
click
()
time
.
sleep
(
1
)
self
.
find_ele
(
self
.
formula_editor
)
.
click
()
time
.
sleep
(
1
)
self
.
find_ele
(
self
.
duplicate_editor
)
.
click
()
time
.
sleep
(
1
)
# self.find_ele(self.reference_editor).click()
self
.
find_ele
(
self
.
start_review_btn
)
.
click
()
self
.
find_ele
(
self
.
start_review_btn
)
.
click
()
time
.
sleep
(
10
)
time
.
sleep
(
10
)
...
...
uifile/综合书稿.pdf
0 → 100644
View file @
006b9f41
File added
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