def when_present_after_refresh(timeout = 30)
      message = "waiting for #{@selector.inspect} to become present"

      if block_given?
        Watir::WaitWithRefresh.refresh_until(browser, timeout, message) { present? }
        yield self
      else
        WhenPresentAfterRefreshDecorator.new(self, timeout, message)
      end
    end
def when_present_after_refresh(timeout = 30)
      message = "waiting for #{@selector.inspect} to become present"

      if block_given?
        Watir::WaitWithRefresh.refresh_until(browser, timeout, message) { present? }
        yield self
      else
        WhenPresentAfterRefreshDecorator.new(self, timeout, message)
      end
    end
Refreshes the page until the element is present.

 @example
   browser.button(:id => 'foo').when_present_after_refresh.click
   browser.div(:id => 'bar').when_present_after_refresh { |div| ... }
   browser.p(:id => 'baz').when_present_after_refresh(60).text

 @param [Fixnum] timeout seconds to wait before timing out

 @see Watir::WaitWithRefresh
 @see Watir::Element#present?