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
f22842ca
Commit
f22842ca
authored
Feb 19, 2024
by
宋鹏博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
c671858a
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
41 additions
and
43 deletions
+41
-43
BasePage.py
Base/BasePage.py
+1
-1
cutils.py
common/cutils.py
+2
-2
untils.py
common/untils.py
+1
-1
AIeditingroom.py
paga/AIeditingroom.py
+1
-1
CodePage.py
paga/CodePage.py
+1
-1
CreatePage.py
paga/CreatePage.py
+2
-3
DelPage.py
paga/DelPage.py
+10
-11
Digitaleditorialassistant.py
paga/Digitaleditorialassistant.py
+5
-5
GivePage.py
paga/GivePage.py
+6
-6
LoginPage.py
paga/LoginPage.py
+3
-3
RAYSmodernpaperbook.py
paga/RAYSmodernpaperbook.py
+1
-1
testDigitaleditorialassistant.py
script/testDigitaleditorialassistant.py
+0
-0
test_create.py
script/test_create.py
+8
-8
No files found.
Base/BasePage.py
View file @
f22842ca
...
@@ -3,7 +3,7 @@ from selenium.webdriver import ActionChains
...
@@ -3,7 +3,7 @@ from selenium.webdriver import ActionChains
from
selenium.webdriver.support.wait
import
WebDriverWait
from
selenium.webdriver.support.wait
import
WebDriverWait
from
selenium.webdriver.support.select
import
Select
from
selenium.webdriver.support.select
import
Select
from
kuangjia.
common.untils
import
DriverTools
from
common.untils
import
DriverTools
class
BasePage
:
class
BasePage
:
...
...
common/cutils.py
View file @
f22842ca
...
@@ -2,8 +2,8 @@ import json
...
@@ -2,8 +2,8 @@ import json
from
selenium.webdriver.support.wait
import
WebDriverWait
from
selenium.webdriver.support.wait
import
WebDriverWait
from
kuangjia.
common.untils
import
DriverTools
from
common.untils
import
DriverTools
from
kuangjia.
config
import
file_path
from
config
import
file_path
def
get_text
(
loc
,
time
=
10
,
fre
=
1
):
def
get_text
(
loc
,
time
=
10
,
fre
=
1
):
...
...
common/untils.py
View file @
f22842ca
...
@@ -3,7 +3,7 @@ import time
...
@@ -3,7 +3,7 @@ import time
from
selenium
import
webdriver
from
selenium
import
webdriver
from
appium
import
webdriver
as
appwebdriver
from
appium
import
webdriver
as
appwebdriver
from
kuangjia.
config
import
appium_server_url
,
caps
from
config
import
appium_server_url
,
caps
class
DriverTools
:
class
DriverTools
:
...
...
paga/AIeditingroom.py
View file @
f22842ca
import
time
import
time
from
selenium.webdriver.common.by
import
By
from
selenium.webdriver.common.by
import
By
from
kuangjia.
Base.BasePage
import
BasePage
from
Base.BasePage
import
BasePage
#AI编辑工作室首页
#AI编辑工作室首页
class
AIER
(
BasePage
):
class
AIER
(
BasePage
):
...
...
paga/CodePage.py
View file @
f22842ca
...
@@ -2,7 +2,7 @@ import time
...
@@ -2,7 +2,7 @@ import time
from
selenium.webdriver.common.by
import
By
from
selenium.webdriver.common.by
import
By
from
kuangjia.
Base.BasePage
import
BasePage
from
Base.BasePage
import
BasePage
# from kuangjia.common.untils import DriverTools
# from kuangjia.common.untils import DriverTools
# from kuangjia.paga.CreatePage import Create
# from kuangjia.paga.CreatePage import Create
# from kuangjia.paga.LoginPage import Login
# from kuangjia.paga.LoginPage import Login
...
...
paga/CreatePage.py
View file @
f22842ca
import
time
import
time
# from lib2to3.pgen2 import driver
# from lib2to3.pgen2 import driver
from
selenium.webdriver.common.by
import
By
from
selenium.webdriver.common.by
import
By
from
kuangjia.Base.BasePage
import
BasePage
from
Base.BasePage
import
BasePage
# from kuangjia.common.untils import DriverTools
# from kuangjia.paga.LoginPage import Login
class
Create
(
BasePage
):
class
Create
(
BasePage
):
...
...
paga/DelPage.py
View file @
f22842ca
import
time
import
time
import
action
from
selenium.webdriver.common.by
import
By
from
selenium.webdriver.common.by
import
By
from
selenium.webdriver.support.wait
import
WebDriverWait
from
Base.BasePage
import
BasePage
from
kuangjia.Base.BasePage
import
BasePage
from
common.cutils
import
get_text
from
kuangjia.common.cutils
import
get_text
from
common.untils
import
DriverTools
from
kuangjia.common.untils
import
DriverTools
from
config
import
user_name
,
password
from
kuangjia.config
import
user_name
,
password
from
paga.CodePage
import
Code
from
kuangjia.paga.CodePage
import
Code
from
paga.CreatePage
import
Create
from
kuangjia.paga.CreatePage
import
Create
from
paga.LoginPage
import
Login
from
kuangjia.paga.LoginPage
import
Login
from
paga.GivePage
import
Give
from
kuangjia.paga.GivePage
import
Give
class
Del
(
BasePage
):
class
Del
(
BasePage
):
...
...
paga/Digitaleditorialassistant.py
View file @
f22842ca
import
time
import
time
from
selenium.webdriver.common.by
import
By
from
selenium.webdriver.common.by
import
By
from
kuangjia.
Base.BasePage
import
BasePage
from
Base.BasePage
import
BasePage
from
kuangjia.
common.cutils
import
get_text
from
common.cutils
import
get_text
from
kuangjia.
common.untils
import
DriverTools
from
common.untils
import
DriverTools
from
kuangjia.
config
import
password
,
user_name
from
config
import
password
,
user_name
from
kuangjia.
paga.LoginPage
import
Login
from
paga.LoginPage
import
Login
class
DEA
(
BasePage
):
class
DEA
(
BasePage
):
...
...
paga/GivePage.py
View file @
f22842ca
...
@@ -2,12 +2,12 @@ import time
...
@@ -2,12 +2,12 @@ import time
from
selenium.webdriver.common.by
import
By
from
selenium.webdriver.common.by
import
By
from
kuangjia.
Base.BasePage
import
BasePage
from
Base.BasePage
import
BasePage
from
kuangjia.
common.untils
import
DriverTools
from
common.untils
import
DriverTools
from
kuangjia.
config
import
user_name
,
password
from
config
import
user_name
,
password
from
kuangjia.
paga.CodePage
import
Code
from
paga.CodePage
import
Code
from
kuangjia.
paga.CreatePage
import
Create
from
paga.CreatePage
import
Create
from
kuangjia.
paga.LoginPage
import
Login
from
paga.LoginPage
import
Login
class
Give
(
BasePage
):
class
Give
(
BasePage
):
...
...
paga/LoginPage.py
View file @
f22842ca
...
@@ -2,9 +2,9 @@ import time
...
@@ -2,9 +2,9 @@ import time
from
selenium.webdriver.common.by
import
By
from
selenium.webdriver.common.by
import
By
from
kuangjia.
Base.BasePage
import
BasePage
from
Base.BasePage
import
BasePage
from
kuangjia.
common.untils
import
DriverTools
from
common.untils
import
DriverTools
from
kuangjia.
config
import
password
,
user_name
from
config
import
password
,
user_name
class
Login
(
BasePage
):
class
Login
(
BasePage
):
...
...
paga/RAYSmodernpaperbook.py
View file @
f22842ca
import
time
import
time
from
selenium.webdriver.common.by
import
By
from
selenium.webdriver.common.by
import
By
from
kuangjia.
Base.BasePage
import
BasePage
from
Base.BasePage
import
BasePage
#RASY现代纸书首页
#RASY现代纸书首页
class
RAYSMPB
(
BasePage
):
class
RAYSMPB
(
BasePage
):
...
...
script/Digitaleditorialassistant.py
→
script/
test
Digitaleditorialassistant.py
View file @
f22842ca
File moved
script/test_create.py
View file @
f22842ca
...
@@ -2,14 +2,14 @@ import time
...
@@ -2,14 +2,14 @@ import time
import
pytest
import
pytest
from
kuangjia.
common.cutils
import
get_text
from
common.cutils
import
get_text
from
kuangjia.
common.untils
import
DriverTools
from
common.untils
import
DriverTools
from
kuangjia.
config
import
user_name
,
password
from
config
import
user_name
,
password
from
kuangjia.
paga.CodePage
import
Code
from
paga.CodePage
import
Code
from
kuangjia.
paga.CreatePage
import
Create
from
paga.CreatePage
import
Create
from
kuangjia.
paga.DelPage
import
Del
from
paga.DelPage
import
Del
from
kuangjia.
paga.GivePage
import
Give
from
paga.GivePage
import
Give
from
kuangjia.
paga.LoginPage
import
Login
from
paga.LoginPage
import
Login
class
TestCreate
:
class
TestCreate
:
...
...
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