spec/fixtures/page_definitions.rb in symbiont-0.6.0 vs spec/fixtures/page_definitions.rb in symbiont-0.7.0

- old
+ new

@@ -2,11 +2,11 @@ attach Symbiont end class TestFactory include Symbiont::Factory - attr_accessor :driver + attr_accessor :browser attr_accessor :page end class ValidPageNewContext attach Symbiont @@ -20,17 +20,17 @@ title_is 'Dialogic' %w(text_field button file_field textarea select_list checkbox).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}_proc", proc { browser.send(element, id: element) } + send element, :"#{element}_lambda", -> { browser.send(element, id: element) } send element, :"#{element}_block" do - driver.send(element, id: element) + browser.send(element, id: element) end send element, :"#{element}_block_arg" do |id| - driver.send(element, id: id) + browser.send(element, id: id) end end end