class PageWithMissingAssertions attach Symbiont end class TestFactory include Symbiont::Factory attr_accessor :driver attr_accessor :active end class ValidPageNewContext attach Symbiont end class ValidPage attach Symbiont url_is 'http://localhost:9292' url_matches /:\d{4}/ title_is 'Dialogic' %w(text_field button).each do |element| send element, :"#{element}", id: element send element, :"#{element}_proc", proc { driver.send(element, id: element) } send element, :"#{element}_lambda", -> { driver.send(element, id: element) } send element, :"#{element}_block" do driver.send(element, id: element) end send element, :"#{element}_block_arg" do |id| driver.send(element, id: id) end end end