Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
d4e7a3d2
Commit
d4e7a3d2
authored
Feb 16, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5TypeFunctionalTestCase: use new selenium API
parent
73014b1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
+3
-5
No files found.
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
View file @
d4e7a3d2
...
@@ -276,9 +276,7 @@ class FunctionalTestRunner:
...
@@ -276,9 +276,7 @@ class FunctionalTestRunner:
kw
.
update
(
kw
.
update
(
firefox_binary
=
firefox_bin
,
firefox_binary
=
firefox_bin
,
executable_path
=
geckodriver
,
executable_path
=
geckodriver
,
# BBB in selenium 3.8.0 this option was named log_path
service_log_path
=
os
.
path
.
join
(
log_directory
,
'geckodriver.log'
),
log_path
=
os
.
path
.
join
(
log_directory
,
'geckodriver.log'
),
# service_log_path=os.path.join(log_directory, 'geckodriver.log'),
)
)
browser
=
webdriver
.
Firefox
(
**
kw
)
browser
=
webdriver
.
Firefox
(
**
kw
)
else
:
else
:
...
@@ -363,11 +361,11 @@ class FunctionalTestRunner:
...
@@ -363,11 +361,11 @@ class FunctionalTestRunner:
# need to wait a bit more, because at the end of test ( testComplete ),
# need to wait a bit more, because at the end of test ( testComplete ),
# updateSuiteWithResultOfPreviousTest is called by setTimeout. We want to
# updateSuiteWithResultOfPreviousTest is called by setTimeout. We want to
# wait for the last test (which is the last td) result table to be present
# wait for the last test (which is the last td) result table to be present
browser
.
switch_to
_
frame
(
'testSuiteFrame'
)
browser
.
switch_to
.
frame
(
'testSuiteFrame'
)
WebDriverWait
(
browser
,
10
).
until
(
EC
.
presence_of_element_located
((
WebDriverWait
(
browser
,
10
).
until
(
EC
.
presence_of_element_located
((
By
.
XPATH
,
'//table/tbody/tr/td[last()]//table'
By
.
XPATH
,
'//table/tbody/tr/td[last()]//table'
)))
)))
browser
.
switch_to
_
default_content
()
browser
.
switch_to
.
default_content
()
self
.
execution_duration
=
round
(
time
.
time
()
-
start_time
,
2
)
self
.
execution_duration
=
round
(
time
.
time
()
-
start_time
,
2
)
html_parser
=
etree
.
HTMLParser
(
recover
=
True
)
html_parser
=
etree
.
HTMLParser
(
recover
=
True
)
iframe
=
etree
.
fromstring
(
iframe
=
etree
.
fromstring
(
...
...
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