Sha256: 315322f8414be2bfbfc2ce772e1bb0051eb03e2f9acea523b94f1ab536dbc3f4

Contents?: true

Size: 725 Bytes

Versions: 26

Compression:

Stored size: 725 Bytes

Contents

require 'spec_helper'

describe RAutomation::TextFields do

  it "Window#text_fields returns all text fields" do
    SpecHelper::navigate_to_simple_elements

    text_fields = RAutomation::Window.new(:title => "SimpleElementsForm").text_fields
    text_fields.size.should == 2
    text_fields.find_all {|t| t.value == "Enter some text"}.size.should == 1
  end

  it "Window#text_fields with parameters returns all matching text fields" do
    SpecHelper::navigate_to_simple_elements

    window = RAutomation::Window.new(:title => "SimpleElementsForm")
    text_fields = window.text_fields(:index => 0)
    text_fields.size.should == 2
    text_fields.first.value.should == "Enter some text"
  end

end

Version data entries

26 entries across 26 versions & 1 rubygems

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