Sha256: 0c7a7f5fbae94ececc51a8284206033417f8e40a7b9281e997ce660928ad4c12

Contents?: true

Size: 653 Bytes

Versions: 21

Compression:

Stored size: 653 Bytes

Contents

require 'spec_helper'

describe RAutomation::Buttons do

  it "Window#buttons returns all buttons" do
    SpecHelper::navigate_to_simple_elements

    buttons = RAutomation::Window.new(:title => "SimpleElementsForm").buttons
    buttons.size.should == 2
    buttons.find_all {|b| b.value == 'button1'}.size.should == 1
  end

  it "Window#buttons with parameters returns all matching buttons" do
      SpecHelper::navigate_to_simple_elements

      buttons = RAutomation::Window.new(:title => "SimpleElementsForm").buttons(:value => 'button1')
      buttons.size.should == 1
      buttons.first.value.should == 'button1'
  end

end

Version data entries

21 entries across 21 versions & 1 rubygems

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