Sha256: fa3b242e423dc6ceb2e5b83341b6e2a5e6c15f6b548b5c67fea45781519af16d

Contents?: true

Size: 680 Bytes

Versions: 20

Compression:

Stored size: 680 Bytes

Contents

module TestCentricity
  class CellRadio < CellElement
    attr_accessor :proxy

    def initialize(name, parent, locator, context, table, column, proxy)
      super
      @type  = :cell_radio
      @proxy = proxy
    end

    def selected?(row)
      obj, = find_cell_element(row)
      cell_object_not_found_exception(obj, 'Cell Radio', row)
      obj.checked?
    end

    def set_selected_state(row, state)
      obj, = find_cell_element(row)
      cell_object_not_found_exception(obj, 'Cell 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

20 entries across 20 versions & 1 rubygems

Version Path
testcentricity_web-2.0.17 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.16 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.15 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.14 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.13 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.12 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.11 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.10 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.9 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.8 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.7 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.6 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.5 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.4 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.3 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.2 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.1 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-2.0.0 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-1.0.23 lib/testcentricity_web/elements/cell_radio.rb
testcentricity_web-1.0.22 lib/testcentricity_web/elements/cell_radio.rb