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