Commit 8629fa11486cb432a9eead3db8e9f1638a8830d5
1 parent
a11e68fb
- fixed: "StaleElementReferenceException: Message: stale element reference: elem…
…ent is not attached to the page document" error
Showing
1 changed file
with
4 additions
and
1 deletions
@@ -320,7 +320,10 @@ wait until popup is visible | @@ -320,7 +320,10 @@ wait until popup is visible | ||
320 | 320 | ||
321 | ${popup_locator_is_none} = get variable is none ${popup_locator} | 321 | ${popup_locator_is_none} = get variable is none ${popup_locator} |
322 | ${popup_locator} = set variable if ${popup_locator_is_none} == ${False} ${popup_locator} ${popup_opened_content_locator} | 322 | ${popup_locator} = set variable if ${popup_locator_is_none} == ${False} ${popup_locator} ${popup_opened_content_locator} |
323 | - wait until element is visible ${popup_locator} ${waiting_timeout} ${waiting_error} | 323 | + ${status} = run keyword and return status wait until element is visible ${popup_locator} ${waiting_timeout} ${waiting_error} |
324 | + # trying to prevent "StaleElementReferenceException: Message: stale element reference: element is not attached to the page document" error | ||
325 | + run keyword if ${status} == ${False} sleep 1 | ||
326 | + run keyword if ${status} == ${False} wait until element is visible ${popup_locator} 1 ${waiting_error} | ||
324 | 327 | ||
325 | wait until alert is visible | 328 | wait until alert is visible |
326 | [Arguments] ${message}=${None} | 329 | [Arguments] ${message}=${None} |
Please
register
or
login
to post a comment