Sha256: 0bb74193dbae344fd4e33267437ccd214d0bed1f7e64c476a96a1c953b4afd3d
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
require 'spec_helper' describe "WinFfi::TextField", :if => SpecHelper.adapter == :win_ffi do it "check for text field class" do RAutomation::Window.new(:title => "MainFormWindow").text_field(:id => "checkBox").should_not exist end it "enabled/disabled" do RAutomation::Window.new(:title => "MainFormWindow").text_field(:id => "textField").should be_enabled RAutomation::Window.new(:title => "MainFormWindow").text_field(:id => "textField").should_not be_disabled RAutomation::Window.new(:title => "MainFormWindow").text_field(:id => "textBoxDisabled").should_not be_enabled RAutomation::Window.new(:title => "MainFormWindow").text_field(:id => "textBoxDisabled").should be_disabled end it "cannot set a value to a disabled text field" do lambda { RAutomation::Window.new(:title => "MainFormWindow").text_field(:id => "textBoxDisabled").set "abc" }.should raise_error lambda { RAutomation::Window.new(:title => "MainFormWindow").text_field(:id => "textBoxDisabled").clear }.should raise_error end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rdp-rautomation-0.6.3.1 | spec/adapter/win_ffi/text_field_spec.rb |