Sha256: 121b119f5cc12588f7a0dc3193d640a74e38f2ce609b52343f0c9d06ac3500c3

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

module TestCentricity
  class AppSwitch < AppUIElement
    def initialize(name, parent, strategy, locator, context)
      super
      @type = :switch
    end

    def on?
      element.get_value == 1
    end

    def on
      element.click unless on?
    end

    def off
      element.click if on?
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
testcentricity-2.3.13 lib/testcentricity/app_elements/switch.rb