mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-02 11:26:26 +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
|