Sha256: 83d60f558c15feaf12f005e8d05f23d560b71138a1957401370b7a110a2714a7
Contents?: true
Size: 716 Bytes
Versions: 2
Compression:
Stored size: 716 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 expect(text_fields.size).to eq(2) expect(text_fields.find_all {|t| t.value == "Enter some text"}.size).to eq(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) expect(text_fields.size).to eq(2) expect(text_fields.first.value).to be == "Enter some text" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rautomation-2.0.1-x86-mingw32 | spec/text_fields_spec.rb |
rautomation-2.0.1-x64-mingw32 | spec/text_fields_spec.rb |