module TestAbstractions::Form

Attributes

evidence[RW]
fields[RW]

Public Class Methods

included(base) click to toggle source
# File lib/test_abstractions/form.rb, line 3
def self.included(base)
  base.send :include, Client::Accessor
  base.extend ClassMethods
end

Public Instance Methods

!()
Alias for: actuate
actuate() click to toggle source
# File lib/test_abstractions/form.rb, line 11
def actuate
  element = client.find actuator
  raise "Element #{actuator} not found" unless element
  actuating! if respond_to? :actuating!
  element.click
  actuated! if respond_to? :actuated!
  evidence
end
Also aliased as: !
fill(data, filler=nil) click to toggle source
# File lib/test_abstractions/form.rb, line 21
def fill(data, filler=nil)
  filler ||= Filler.build data, self
  filler.!
  filler
end
open() click to toggle source
# File lib/test_abstractions/form.rb, line 27
def open
  client.open uri
end