Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-sc
Commits
1f26580c
Commit
1f26580c
authored
Oct 31, 2023
by
章 登恒
Browse files
commit
parent
c9958d18
Changes
1
Hide whitespace changes
Inline
Side-by-side
testcase/test_scene1/scene1_mainflow.py
View file @
1f26580c
...
...
@@ -4,23 +4,24 @@ import threading
import
time
import
traceback
from
airtest.core.api
import
*
import
os
import
sys
cur_path
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
# 获取当前文件的目录
proj_path
=
cur_path
[:
cur_path
.
find
(
'testcase'
)]
# 获取根目录
print
(
proj_path
)
sys
.
path
.
append
(
proj_path
)
# from airtest.core.api import *
# from selenium.webdriver import DesiredCapabilities
# from airtest_selenium.proxy import *
from
selenium
import
webdriver
from
selenium.webdriver
import
DesiredCapabilities
from
selenium.webdriver.common.by
import
By
from
selenium.webdriver.common.keys
import
Keys
from
airtest_selenium.proxy
import
*
from
selenium.webdriver
import
Chrome
,
ChromeOptions
from
airtest.core.api
import
*
from
airtest_selenium.proxy
import
*
from
selenium.webdriver.support
import
expected_conditions
as
ec
from
selenium.webdriver.support.wait
import
WebDriverWait
import
os
import
sys
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
sys
.
path
.
append
(
BASE_DIR
)
from
public.mail1
import
send_email1
from
public.tools
import
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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