it gave me uninitialized constant Watir::Grid (NameError) This seems strange, almost like it did not find watirgrid when you required it.. OTOH Grid is not a stock part of Watir, So potentially the problem could be that you are requiring watir in your script (I notice his example does not do that) I'd remove all the requires that are not present in his examples and start from there.
On Monday, March 18, 2013 2:45:25 PM UTC-7, [email protected] wrote: > > I installed watirgrid on my Mac: OS X 10.7.5, Mac default Ruby 1.8.7 with > all the needed gems, watir, webdriver, rubygems, etc > > require 'rubygems' > require 'watir-webdriver' > require 'watir' > require 'watirgrid' > require 'controller' > require 'provider' > > > # Here's some basic examples in plain Ruby with Watirgrid and WebDriver > > # Start a Controller using defaults > controller = Controller.new > controller.start > > # Start 2 Providers with WebDriver > > provider = Provider.new(:browser_type => 'firefox') > provider.start > > > # Control the Providers via the Grid > > $browser = Watir::Browser.new(:firefox) > > grid = Watir::Grid.new > grid.start(:take_all => true) > > when run it, it gave me uninitialized constant Watir::Grid (NameError) > the controller and the provide didn't work if I didn't add require > 'controller' and require 'provider' there > I was trying to get this sample work from > http://wiki.openqa.org/display/WTR/WatirGrid > > any help would be appreciated. > > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
