Class: FillInUtil

Inherits:
Object
  • Object
show all
Defined in:
lib/steps/util/fill_in_util.rb

Class Method Summary collapse

Class Method Details

.clear_text_field(locator) ⇒ Object



3
4
5
# File 'lib/steps/util/fill_in_util.rb', line 3

def self.clear_text_field(locator)
  fill_in(locator, with: '', fill_options: { clear: :backspace }, wait: BddHelper.timeout)
end

.fill_text_field(locator, text) ⇒ Object



7
8
9
10
# File 'lib/steps/util/fill_in_util.rb', line 7

def self.fill_text_field(locator, text)
  clear_text_field(locator)
  fill_in(locator, with: text, wait: BddHelper.timeout)
end