Commit 037ff3738308fcaea7d47b1814e79729a397d609
Merge branch 'v3-dev' of https://git.4k.com.ua/root/playtender-robot_tests into v3-dev
Showing
1 changed file
with
4 additions
and
1 deletions
... | ... | @@ -320,7 +320,10 @@ wait until popup is visible |
320 | 320 | |
321 | 321 | ${popup_locator_is_none} = get variable is none ${popup_locator} |
322 | 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 | 328 | wait until alert is visible |
326 | 329 | [Arguments] ${message}=${None} | ... | ... |
Please
register
or
login
to post a comment