examples/basic/basic.rb in grid-0.4.1 vs examples/basic/basic.rb in grid-0.4.2

- old
+ new

@@ -1,18 +1,18 @@ -require '../lib/grid' +require 'grid' require 'watir-webdriver-performance' # only if using webdriver_performance ## # Set some parameters before we begin -params={} -params[:controller_uri] = "druby://ec2-50-16-63-81.compute-1.amazonaws.com:11235" -params[:browser] = "chrome" -params[:quantity] = 5 +options={} +options[:controller_uri] = "druby://ec2-50-16-63-81.compute-1.amazonaws.com:11235" +options[:browser] = "chrome" +options[:quantity] = 5 ## # Let's instantiate a grid object -grid = Grid.new(params) +grid = Grid.new(options) ## # How big is my grid? puts grid.size @@ -42,10 +42,10 @@ grid.teardown ## # There's also a iterate_with_index method if you want to keep track # of individual browsers for further reporting and analysis -grid = Grid.new(params) +grid = Grid.new(options) grid.setup grid.iterate_with_index do |browser, index| puts "I am browser index #{index}" browser.goto "watirgrid.com"