mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-13 08:31:23 +00:00
10 lines
224 B
Ruby
10 lines
224 B
Ruby
|
module PageObject
|
||
|
def refresh_until(timeout = PageObject.default_page_wait, message = nil)
|
||
|
platform.wait_until(timeout, message) do
|
||
|
yield.tap do |result|
|
||
|
refresh unless result
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|