Sha256: 98dfda35f31a17ff92aa5ac067bc277c04e5dc4688dbf6b5df0359c09887b331

Contents?: true

Size: 518 Bytes

Versions: 21

Compression:

Stored size: 518 Bytes

Contents

require 'spec_helper'

describe "Win32::Label", :if => SpecHelper.adapter == :win_32 do
  it "#exist?" do
    window = RAutomation::Window.new(:title => "MainFormWindow")

    window.label(:value => "This is a sample text").should exist
    window.label(:value => "This label should not exist").should_not exist
  end

  it "#label" do
    window = RAutomation::Window.new(:title => "MainFormWindow")
    window.label(:value => "This is a sample text").value.should == "This is a sample text"
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

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