Commit ab904750 authored by Arnaud Fontaine's avatar Arnaud Fontaine

If selecting a workflow fails, refresh the page, otherwise the content is outdated

parent f0dfc4c9
...@@ -887,6 +887,8 @@ class ContextMainForm(MainForm): ...@@ -887,6 +887,8 @@ class ContextMainForm(MainForm):
@param sleep_between_attempt: Sleep N seconds between attempts @param sleep_between_attempt: Sleep N seconds between attempts
@type sleep_between_attempt: int @type sleep_between_attempt: int
""" """
url_before = self.browser.url
def tryLegacyAndNew(): def tryLegacyAndNew():
try: try:
self.browser.mainForm.submitSelect( self.browser.mainForm.submitSelect(
...@@ -911,6 +913,9 @@ class ContextMainForm(MainForm): ...@@ -911,6 +913,9 @@ class ContextMainForm(MainForm):
current_attempt_number += 1 current_attempt_number += 1
time.sleep(sleep_between_attempt) time.sleep(sleep_between_attempt)
# The page needs to be reloaded before the next attempt
self.browser.open(url_before)
else: else:
break break
......
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