Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
ab904750
Commit
ab904750
authored
Sep 13, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If selecting a workflow fails, refresh the page, otherwise the content is outdated
parent
f0dfc4c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
erp5/util/testbrowser/browser.py
erp5/util/testbrowser/browser.py
+5
-0
No files found.
erp5/util/testbrowser/browser.py
View file @
ab904750
...
...
@@ -887,6 +887,8 @@ class ContextMainForm(MainForm):
@param sleep_between_attempt: Sleep N seconds between attempts
@type sleep_between_attempt: int
"""
url_before
=
self
.
browser
.
url
def
tryLegacyAndNew
():
try
:
self
.
browser
.
mainForm
.
submitSelect
(
...
...
@@ -911,6 +913,9 @@ class ContextMainForm(MainForm):
current_attempt_number
+=
1
time
.
sleep
(
sleep_between_attempt
)
# The page needs to be reloaded before the next attempt
self
.
browser
.
open
(
url_before
)
else
:
break
...
...
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