Sha256: fd8ff7f164956e6aad1ee45fc1052ba921ce20c32d2b7f34578d3128ee281000

Contents?: true

Size: 274 Bytes

Versions: 3

Compression:

Stored size: 274 Bytes

Contents

# frozen_string_literal: true

module Raider
  module WatirHelper
    refine Watir::Element do
      def click_when_present
        wait_until_present
        self.click
      end

      def wait_until_present
        self.wait_until(&:present?)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_raider-0.2.2 lib/generators/templates/helpers/watir_helper.tt
ruby_raider-0.2.1 lib/generators/templates/helpers/watir_helper.tt
ruby_raider-0.2.0 lib/generators/templates/helpers/watir_helper.tt