Sha256: 486089a8210c6e481e0887e0644072f84146c18eb8762f9a962405f8253e7558
Contents?: true
Size: 802 Bytes
Versions: 3
Compression:
Stored size: 802 Bytes
Contents
module Cello module PageObjects module TextfieldHelper def define_extras_for_text_field(name) define_method "#{name}_clear" do send(name).clear end define_method "#{name}_fill_with" do |text| send(name).set text end define_method "#{name}_dont_contain" do |text| !(send(name).value.include? text) end define_method "#{name}_contains" do |text| send(name).value.include? text end define_method "#{name}_text_is" do |text| send(name).value == text end define_method "#{name}_is_empty?" do send(name).value.empty? end define_method "#{name}_text_size" do send(name).value.size end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems