Sha256: 4d3c54df271cc5128de3eae88d4aa16bc8d3c78bfb6cc8e4ae290817d464a32d

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

module Mohawk
  module Accessors
    class Control
      attr_reader :view
      def initialize(adapter, locator)
        @adapter = adapter
        @view = adapter.window.value_control(locator)
      end

      def value
        @view.value
      end

      def set(value)
        @view.set value
      end

      def click
        @view.click
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mohawk-0.0.4 lib/mohawk/accessors/control.rb
mohawk-0.0.3 lib/mohawk/accessors/control.rb