Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
selenium
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
谢非
selenium
Commits
19074c43
Commit
19074c43
authored
Feb 19, 2024
by
宋鹏博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
f22842ca
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
13 deletions
+18
-13
AIEditingRoomPage.py
paga/AIEditingRoomPage.py
+3
-2
DigitalEmployeesPage.py
paga/DigitalEmployeesPage.py
+10
-7
RAYSmodernpaperbook.py
paga/RAYSmodernpaperbook.py
+3
-2
test_digital_editorial_assistant.py
script/test_digital_editorial_assistant.py
+2
-2
No files found.
paga/AI
editingroom
.py
→
paga/AI
EditingRoomPage
.py
View file @
19074c43
...
...
@@ -2,14 +2,15 @@ import time
from
selenium.webdriver.common.by
import
By
from
Base.BasePage
import
BasePage
#AI编辑工作室首页
# AI编辑工作室首页
class
AIER
(
BasePage
):
def
__init__
(
self
):
super
()
.
__init__
(
'web'
)
# AI编辑室
self
.
AI_editing_room
=
(
By
.
XPATH
,
"//li[contains(text(),'AI')]"
)
#点击AI编辑室
#
点击AI编辑室
def
to_ai_room
(
self
):
time
.
sleep
(
1
)
self
.
find_ele
(
self
.
AI_editing_room
)
.
click
()
...
...
paga/Digital
editorialassistant
.py
→
paga/Digital
EmployeesPage
.py
View file @
19074c43
...
...
@@ -11,7 +11,8 @@ class DEA(BasePage):
def
__init__
(
self
):
super
()
.
__init__
(
'web'
)
# 数字编辑助理
self
.
Digital_editorial_assistant
=
(
By
.
XPATH
,
"/html[1]/body[1]/div[1]/div[1]/section[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[6]/div[1]/div[1]/div[1]"
)
self
.
Digital_editorial_assistant
=
(
By
.
XPATH
,
"/html[1]/body[1]/div[1]/div[1]/section[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[6]/div[1]/div[1]/div[1]"
)
# 更多
self
.
More
=
(
By
.
XPATH
,
"//div[@class='button-list-item more-btn']"
)
# 制作英语听力配音
...
...
@@ -22,13 +23,17 @@ class DEA(BasePage):
# 发送
self
.
send
=
(
By
.
XPATH
,
"//button[@class='send-button']"
)
# 推送英语配音
self
.
Make_dubbing
=
(
By
.
XPATH
,
"/html[1]/body[1]/div[1]/div[1]/section[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[1]/div[11]/div[1]/div[1]/div[2]/div[2]/div[1]/div[2]/div[1]/button[1]/span[1]"
)
self
.
Make_dubbing
=
(
By
.
XPATH
,
"/html[1]/body[1]/div[1]/div[1]/section[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[1]/div[11]/div[1]/div[1]/div[2]/div[2]/div[1]/div[2]/div[1]/button[1]/span[1]"
)
# 制作多角色配音
self
.
Make_multi_character_voice_overs
=
(
By
.
XPATH
,
"//div[@class='button-type-list']//div[1]//div[2]//div[2]//div[1]//div[1]"
)
self
.
Make_multi_character_voice_overs
=
(
By
.
XPATH
,
"//div[@class='button-type-list']//div[1]//div[2]//div[2]//div[1]//div[1]"
)
# 推送多角色配音
self
.
multi_role
=
(
By
.
XPATH
,
"/html[1]/body[1]/div[1]/div[1]/section[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[1]/div[11]/div[1]/div[1]/div[2]/div[2]/div[1]/div[2]/div[1]/button[1]/span[1]"
)
self
.
multi_role
=
(
By
.
XPATH
,
"/html[1]/body[1]/div[1]/div[1]/section[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[1]/div[11]/div[1]/div[1]/div[2]/div[2]/div[1]/div[2]/div[1]/button[1]/span[1]"
)
# 现代纸书一键制作
self
.
Modern_paper_book_one_key_production_resource_allocation
=
(
By
.
XPATH
,
"//div[contains(@class,'ant-popover button-list-more-popover ant-popover-placement-topRight')]//div[2]//div[2]//div[1]//div[1]//div[1]"
)
self
.
Modern_paper_book_one_key_production_resource_allocation
=
(
By
.
XPATH
,
"//div[contains(@class,'ant-popover button-list-more-popover ant-popover-placement-topRight')]//div[2]//div[2]//div[1]//div[1]//div[1]"
)
# 书刊名称输入框
self
.
Book_title
=
(
By
.
XPATH
,
"//input[@placeholder='请输入书刊名称']"
)
# 点击查询
...
...
@@ -44,7 +49,6 @@ class DEA(BasePage):
#
self
.
Home_page01
=
(
By
.
XPATH
,
"//div[@class='system-title']"
)
def
Digital_editing
(
self
):
time
.
sleep
(
1
)
# self.find_ele(self.Digital_editorial_assistant).click()
...
...
@@ -103,7 +107,6 @@ class DEA(BasePage):
time
.
sleep
(
5
)
if
__name__
==
'__main__'
:
DriverTools
.
get_driver
()
.
get
(
'https://rays7.5rs.me/login'
)
Login
()
.
login
(
user_name
,
password
)
...
...
paga/RAYSmodernpaperbook.py
View file @
19074c43
...
...
@@ -2,14 +2,15 @@ import time
from
selenium.webdriver.common.by
import
By
from
Base.BasePage
import
BasePage
#RASY现代纸书首页
# RASY现代纸书首页
class
RAYSMPB
(
BasePage
):
def
__init__
(
self
):
super
()
.
__init__
(
'web'
)
# AI编辑工作室
self
.
AI_editing_studio
=
(
By
.
XPATH
,
"//div[@class='system-title']"
)
#点击AI编辑工作室
#
点击AI编辑工作室
def
to_ai_studio
(
self
):
time
.
sleep
(
1
)
self
.
find_ele
(
self
.
AI_editing_studio
)
.
click
()
script/test
Digitaleditorial
assistant.py
→
script/test
_digital_editorial_
assistant.py
View file @
19074c43
...
...
@@ -5,8 +5,8 @@ import pytest
from
common.cutils
import
get_text
from
common.untils
import
DriverTools
from
config
import
user_name
,
password
from
paga.AI
editingroom
import
AIER
from
paga.Digital
editorialassistant
import
DEA
from
paga.AI
EditingRoomPage
import
AIER
from
paga.Digital
EmployeesPage
import
DEA
from
paga.RAYSmodernpaperbook
import
RAYSMPB
from
paga.DelPage
import
Del
from
paga.LoginPage
import
Login
...
...
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