Sha256: 1cc16fc2d6c1e575f61cb173a040be0f546859c6d775b1d27527160f6c212a69

Contents?: true

Size: 367 Bytes

Versions: 9

Compression:

Stored size: 367 Bytes

Contents

module Mohawk
  module Accessors
    class Button
      attr_reader :view

      def initialize(adapter, locator)
        @view = adapter.window.button(locator)
      end

      def click(&block)
        @view.click &block if block
        @view.click {true} unless block
      end

      def value
        @view.value
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mohawk-0.1.4 lib/mohawk/accessors/button.rb
mohawk-0.1.0 lib/mohawk/accessors/button.rb
mohawk-0.0.9 lib/mohawk/accessors/button.rb
mohawk-0.0.8 lib/mohawk/accessors/button.rb
mohawk-0.0.7 lib/mohawk/accessors/button.rb
mohawk-0.0.6 lib/mohawk/accessors/button.rb
mohawk-0.0.5 lib/mohawk/accessors/button.rb
mohawk-0.0.4 lib/mohawk/accessors/button.rb
mohawk-0.0.3 lib/mohawk/accessors/button.rb