lib/testcentricity_web/web_elements/table.rb
# Wait until the table's row count changes to a different value, or until the specified wait time has expired. If the
# wait time is nil, then the wait time will be Capybara.default_max_wait_time.
#
# @param seconds [Integer or Float] wait time in seconds
# @example
#   list_table.wait_until_row_count_changes(5)
#
Wait until the table's row count changes to a different value, or until the specified wait time has expired. If the
wait time is nil, then the wait time will be Capybara.default_max_wait_time.
Wait until the table ' s row count changes to a different value or until the specified wait time has expired . If the wait time is nil then the wait time will be Capybara . default_max_wait_time .
def wait_until_row_count_changes(seconds = nil, post_exception = true)
      value = get_row_count
      timeout = seconds.nil? ? Capybara.default_max_wait_time : seconds
      wait = Selenium::WebDriver::Wait.new(timeout: timeout)
      wait.until { get_row_count != value }
    rescue
      if post_exception
        raise "Value of Table #{object_ref_message} failed to change from '#{value}' after #{timeout} seconds" if get_row_count == value
      else
        get_row_count == value
      end
    end
def wait_until_row_count_changes ( seconds = nil , post_exception = true ) value = get_row_count timeout = seconds . nil? ? Capybara . default_max_wait_time : seconds wait = Selenium :: WebDriver :: Wait . new ( timeout : timeout ) wait . until { get_row_count != value } rescue if post_exception raise "Value of Table #{object_ref_message} failed to change from '#{value}' after #{timeout} seconds" if get_row_count == value else get_row_count == value end end
Wait until the table's row count changes to a different value, or until the specified wait time has expired.
Wait until the table ' s row count changes to a different value or until the specified wait time has expired .
seconds
wait time in seconds
wait time in seconds
post_exception
example
None