Commit 19074c43 by 宋鹏博

修改

parent f22842ca
......@@ -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()
......
......@@ -11,24 +11,29 @@ 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']")
# 制作英语听力配音
self.Make_English_listening_dubbing = (
By.XPATH, "//div[@class='button-type-list']//div[1]//div[2]//div[1]//div[1]//div[1]")
By.XPATH, "//div[@class='button-type-list']//div[1]//div[2]//div[1]//div[1]//div[1]")
# 输入框
self.Input_field = (By.XPATH, "//div[@class='Editor-inner']")
# 发送
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)
......
......@@ -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()
......@@ -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.AIeditingroom import AIER
from paga.Digitaleditorialassistant import DEA
from paga.AIEditingRoomPage import AIER
from paga.DigitalEmployeesPage import DEA
from paga.RAYSmodernpaperbook import RAYSMPB
from paga.DelPage import Del
from paga.LoginPage import Login
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment