Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wsmonitor
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
宋鹏博
wsmonitor
Commits
086e4ce7
Commit
086e4ce7
authored
Jul 31, 2025
by
之约
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
ff1e76cd
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
13 deletions
+33
-13
config.py
config.py
+3
-0
AIBookreviewPaga.py
paga/AIBookreviewPaga.py
+1
-7
AITopicplanningPaga.py
paga/AITopicplanningPaga.py
+23
-3
AiNewmediaeditorPage.py
paga/AiNewmediaeditorPage.py
+1
-1
LoginPage.py
paga/LoginPage.py
+5
-2
月亮的印章.pdf
uifile/月亮的印章.pdf
+0
-0
No files found.
config.py
View file @
086e4ce7
...
@@ -35,11 +35,14 @@ knowledge_text = "六四"
...
@@ -35,11 +35,14 @@ knowledge_text = "六四"
find_word_text
=
"测试工程师"
find_word_text
=
"测试工程师"
updata_AiNewmediae_name
=
"四川旧事.docx"
updata_AiNewmediae_name
=
"四川旧事.docx"
updata_AiNewmediae_path
=
path
+
updata_AiNewmediae_name
updata_AiNewmediae_path
=
path
+
updata_AiNewmediae_name
updata_AiTopic_name
=
"月亮的印章.pdf"
updata_AiTopic_path
=
path
+
updata_AiTopic_name
AiNewmediae_text
=
"四川旧事"
AiNewmediae_text
=
"四川旧事"
Aiperiodicals_text
=
"每日"
Aiperiodicals_text
=
"每日"
Aibook_file_text
=
"莫言"
Aibook_file_text
=
"莫言"
# 测试环境编辑empid
# 测试环境编辑empid
# #AI审校编辑
# #AI审校编辑
# AI_review_empid = 7555
# AI_review_empid = 7555
...
...
paga/AIBookreviewPaga.py
View file @
086e4ce7
...
@@ -59,11 +59,5 @@ class AIBookreview(BasePage):
...
@@ -59,11 +59,5 @@ class AIBookreview(BasePage):
time
.
sleep
(
3
)
time
.
sleep
(
3
)
self
.
find_ele
(
self
.
send_file
)
.
click
()
self
.
find_ele
(
self
.
send_file
)
.
click
()
# if __name__ == '__main__':
# driver = DriverTools.get_driver().get("https://aistudio.5rs.me/")
# Login().login("17671436261", "Xf123456")
# AIER().to_AI_Bookreview()
# AIBookreview().update_social_btn(updata_AiNewmediae_path)
# time.sleep(10)
# DriverTools.quit_driver()
paga/AITopicplanningPaga.py
View file @
086e4ce7
...
@@ -7,6 +7,7 @@ from paga.AIEditingRoomPage import AIER
...
@@ -7,6 +7,7 @@ from paga.AIEditingRoomPage import AIER
from
paga.LoginPage
import
Login
from
paga.LoginPage
import
Login
from
common.cutils
import
ws_error
from
common.cutils
import
ws_error
from
config
import
Aibook_file_text
from
config
import
Aibook_file_text
from
config
import
updata_AiTopic_path
,
updata_AiNewmediae_path
...
@@ -52,7 +53,20 @@ class AITopicplanning(BasePage):
...
@@ -52,7 +53,20 @@ class AITopicplanning(BasePage):
self
.
Accumulated_btn
=
(
By
.
XPATH
,
"(//*[name()='svg'])[7]"
)
self
.
Accumulated_btn
=
(
By
.
XPATH
,
"(//*[name()='svg'])[7]"
)
# 导出数据按钮
# 导出数据按钮
self
.
exportdata_btn
=
(
By
.
XPATH
,
"(//span[@class='export-normal'])[1]"
)
self
.
exportdata_btn
=
(
By
.
XPATH
,
"(//span[@class='export-normal'])[1]"
)
# 更多按钮
self
.
more_btn
=
(
By
.
XPATH
,
"(//div[@class='button-list-item more-btn hover-bg-color hover-text-color'])[1]"
)
# 已有作者稿件,写选题报告
self
.
Topic_btn
=
(
By
.
XPATH
,
"(//div[@class='name'][contains(text(),'已有作者稿件,写选题报告')])[2]"
)
# 上传稿件/样张
self
.
manuscript_btn
=
(
By
.
XPATH
,
"//div[@class='upload-header']"
)
# 图书名称
self
.
bookname_btn
=
(
By
.
XPATH
,
"//div[@class='Editor']//div[3]//div[1]//div[1]"
)
# 作者
self
.
author_btn
=
(
By
.
XPATH
,
"//div[@class='Editor']//div[4]//div[1]//div[1]"
)
# 作者介绍
self
.
introduce_btn
=
(
By
.
XPATH
,
"//div[@class='Editor-wrap Editor-wrap-code- Editor-wrap-documenttype-']//div[5]//div[1]//div[1]"
)
# 内容介绍
self
.
Introduction_btn
=
(
By
.
XPATH
,
"(//div[@class='custom-input-inner'])[4]"
)
# AI选题策划编辑-取书名
# AI选题策划编辑-取书名
def
ai_booktitle
(
self
):
def
ai_booktitle
(
self
):
...
@@ -65,5 +79,10 @@ class AITopicplanning(BasePage):
...
@@ -65,5 +79,10 @@ class AITopicplanning(BasePage):
if
__name__
==
'__main__'
:
driver
=
DriverTools
.
get_driver
()
.
get
(
"https://aistudio.5rs.me/"
)
Login
()
.
login
(
"17671436261"
,
"Xf123456"
)
AIER
()
.
to_AI_Topicplanning
()
AITopicplanning
()
.
Author_Topic
()
time
.
sleep
(
10
)
DriverTools
.
quit_driver
()
\ No newline at end of file
paga/AiNewmediaeditorPage.py
View file @
086e4ce7
...
@@ -10,7 +10,7 @@ from config import AiNewmediae_text,updata_AiNewmediae_path
...
@@ -10,7 +10,7 @@ from config import AiNewmediae_text,updata_AiNewmediae_path
# AI
新媒体
编辑页面
# AI
营销
编辑页面
class
AiNewmediaeditor
(
BasePage
):
class
AiNewmediaeditor
(
BasePage
):
def
__init__
(
self
):
def
__init__
(
self
):
super
()
.
__init__
(
'web'
)
super
()
.
__init__
(
'web'
)
...
...
paga/LoginPage.py
View file @
086e4ce7
...
@@ -16,16 +16,19 @@ class Login(BasePage):
...
@@ -16,16 +16,19 @@ class Login(BasePage):
# 登录密码
# 登录密码
self
.
follow_password
=
(
By
.
ID
,
'pwd'
)
self
.
follow_password
=
(
By
.
ID
,
'pwd'
)
# 登录按钮
# 登录按钮
self
.
person_login
=
(
By
.
XPATH
,
'/html/body/div/div/div/div[1]/div[3]/div/div/div[3]/form/div['
self
.
person_login
=
(
By
.
XPATH
,
"(//span[contains(text(),'登录')])[2]"
)
'4]/div/div/div/div/button'
)
# 错误弹窗
# 错误弹窗
self
.
login_info
=
(
By
.
XPATH
,
'/html/body/div[2]/div/div/div/div/div/span[2]'
)
self
.
login_info
=
(
By
.
XPATH
,
'/html/body/div[2]/div/div/div/div/div/span[2]'
)
# 勾选协议
self
.
Check_agreement
=
(
By
.
XPATH
,
"(//span[contains(text(),'我已阅读并同意')])[1]"
)
def
login
(
self
,
user
,
password
):
def
login
(
self
,
user
,
password
):
self
.
find_ele
(
self
.
reader_username
)
.
send_keys
(
user
)
self
.
find_ele
(
self
.
reader_username
)
.
send_keys
(
user
)
time
.
sleep
(
1
)
time
.
sleep
(
1
)
self
.
find_ele
(
self
.
follow_password
)
.
send_keys
(
password
)
self
.
find_ele
(
self
.
follow_password
)
.
send_keys
(
password
)
time
.
sleep
(
1
)
time
.
sleep
(
1
)
self
.
find_ele
(
self
.
Check_agreement
)
.
click
()
time
.
sleep
(
1
)
self
.
find_ele
(
self
.
person_login
)
.
click
()
self
.
find_ele
(
self
.
person_login
)
.
click
()
time
.
sleep
(
1
)
time
.
sleep
(
1
)
...
...
uifile/月亮的印章.pdf
0 → 100644
View file @
086e4ce7
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