Skip to content
代码片段 群组 项目
未验证 提交 85d6db2a 编辑于 作者: Harsha Muralidhar's avatar Harsha Muralidhar 提交者: GitLab
浏览文件

Handle stale element error exception with DOM changes

上级 251748c1
No related branches found
No related tags found
无相关合并请求
......@@ -36,9 +36,11 @@ def finished_loading?(wait: DEFAULT_MAX_WAIT_TIME)
# migration to the new spinner is complete.
# https://gitlab.com/groups/gitlab-org/-/epics/956
# retry_on_exception added here due to `StaleElementReferenceError`. See: https://gitlab.com/gitlab-org/gitlab/-/issues/232485
Support::Retrier.retry_on_exception do
Capybara.page.has_no_css?('.gl-spinner', wait: wait)
end
Capybara.page.has_no_css?('.gl-spinner', wait: wait)
rescue Selenium::WebDriver::Error::StaleElementReferenceError => e
QA::Runtime::Logger.error(".gl-spinner reference has become stale: #{e}")
true
end
end
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册