Sha256: f22086c12132d988cfd38c20dec121a2253675ddca0640b8556a481e735d291d

Contents?: true

Size: 645 Bytes

Versions: 5

Compression:

Stored size: 645 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

5 entries across 5 versions & 1 rubygems

Version Path
rautomation-0.6.3 spec/buttons_spec.rb
rautomation-0.6.2 spec/buttons_spec.rb
rautomation-0.6.1 spec/buttons_spec.rb
rautomation-0.6.0 spec/buttons_spec.rb
rautomation-0.5.1 spec/buttons_spec.rb