Sha256: 119c2a24ec0e9a86e0d8b068350111aac850a38f424914ca55ccb58e9a61f261
Contents?: true
Size: 1.14 KB
Versions: 5
Compression:
Stored size: 1.14 KB
Contents
require 'spec_helper' describe "MsUia::TextField", :if => SpecHelper.adapter == :ms_uia do it "check for text field class" do RAutomation::Window.new(:title => "MainFormWindow").text_field(:id => "checkBox").should_not exist RAutomation::Window.new(:title => "MainFormWindow").text_field(:id => "textField").should 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
5 entries across 5 versions & 1 rubygems