Sha256: 207df200f7b27e169f97553edd4b178669a8c1f4b79f6aba50bb0be1f4ebc2fc

Contents?: true

Size: 860 Bytes

Versions: 21

Compression:

Stored size: 860 Bytes

Contents

require 'spec_helper'

describe "Win32::Table", :if => SpecHelper.adapter == :win_32 do
  before :each do
    window = RAutomation::Window.new(:title => "MainFormWindow")
    window.button(:value => "Data Entry Form").click { RAutomation::Window.new(:title => "DataEntryForm").exists? }
  end

  it "#table" do
    table = RAutomation::Window.new(:title => "DataEntryForm").table
    table.should exist
    
    RAutomation::Window.wait_timeout = 0.1
    expect {RAutomation::Window.new(:title => "non-existent-window").
            table(:class => /SysListView32/i)}.
            to raise_exception(RAutomation::UnknownWindowException)
  end

  it "#select" do
    table = RAutomation::Window.new(:title => "DataEntryForm").table

    table.should_not be_selected(2)
    table.select(2)
    table.should be_selected(2)
  end

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rautomation-1.1.0 spec/adapter/win_32/table_spec.rb
rautomation-1.0.0 spec/adapter/win_32/table_spec.rb
rautomation-0.17.0 spec/adapter/win_32/table_spec.rb
rautomation-0.16.0 spec/adapter/win_32/table_spec.rb
rautomation-0.15.0 spec/adapter/win_32/table_spec.rb
rautomation-0.14.1 spec/adapter/win_32/table_spec.rb
rautomation-0.14.0 spec/adapter/win_32/table_spec.rb
rautomation-0.13.0 spec/adapter/win_32/table_spec.rb
rautomation-0.12.0 spec/adapter/win_32/table_spec.rb
rautomation-0.11.0 spec/adapter/win_32/table_spec.rb
rautomation-0.10.0 spec/adapter/win_32/table_spec.rb
rautomation-0.9.4 spec/adapter/win_32/table_spec.rb
rautomation-0.9.3 spec/adapter/win_32/table_spec.rb
rautomation-0.9.2 spec/adapter/win_32/table_spec.rb
rautomation-0.9.1 spec/adapter/win_32/table_spec.rb
rautomation-0.9.0 spec/adapter/win_32/table_spec.rb
rautomation-0.8.0 spec/adapter/win_32/table_spec.rb
rautomation-0.7.3 spec/adapter/win_32/table_spec.rb
rautomation-0.7.2 spec/adapter/win_32/table_spec.rb
rautomation-0.7.1 spec/adapter/win_32/table_spec.rb