Sha256: 0178d3954c00e00fa16c71956620de145d00aa1b7ac382fa68edfbc6711733dd

Contents?: true

Size: 677 Bytes

Versions: 120

Compression:

Stored size: 677 Bytes

Contents

module TestCentricity
  class ListRadio < ListElement
    attr_accessor :proxy

    def initialize(name, parent, locator, context, list, proxy = nil)
      super
      @type  = :list_radio
      @proxy = proxy
    end

    def selected?(row)
      obj, = find_list_element(row)
      list_object_not_found_exception(obj, 'List Radio', row)
      obj.checked?
    end

    def set_selected_state(row, state)
      obj, = find_list_element(row)
      list_object_not_found_exception(obj, 'List Radio', row)
      obj.set(state)
    end

    def select(row)
      set_selected_state(row, true)
    end

    def unselect(row)
      set_selected_state(row, false)
    end
  end
end

Version data entries

120 entries across 120 versions & 2 rubygems

Version Path
testcentricity_web-3.3.0 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.25 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.24 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.23 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.22 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.21 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.20 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.19 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.18 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.17 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.16 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.15 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.14 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.13 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.12 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.11 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.10 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.9 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.8 lib/testcentricity_web/web_elements/list_radio.rb
testcentricity_web-3.2.7 lib/testcentricity_web/web_elements/list_radio.rb