Hi Amit, Here is my gem list for a Windows8 VM.
C:\>gem list *** LOCAL GEMS *** bigdecimal (1.1.0) builder (3.1.4) childprocess (0.3.7) commonwatir (4.0.0) ffi (1.3.1 x86-mingw32) hoe (3.5.0) io-console (0.3) json (1.5.4) mini_magick (3.2.1) minitest (2.5.1) multi_json (1.5.0) mysql (2.9.0 x86-mingw32) mysql2 (0.3.11 x86-mingw32) nokogiri (1.5.6 x86-mingw32) rake (0.9.2.2) rautomation (0.7.3) rdoc (3.9.4) rubyzip (0.9.9) s4t-utils (1.0.4) selenium-webdriver (2.29.0) subexec (0.0.4) terminal-table (1.4.5) user-choices (1.1.6.1) watir (4.0.2 x86-mingw32) watir-classic (3.4.0) watir-webdriver (0.6.2) websocket (1.0.6) win32-api (1.4.8 x86-mingw32) win32-process (0.7.1) win32screenshot (1.0.7) windows-api (0.4.2) windows-pr (1.2.2) xml-simple (1.1.2) Joe On Fri, Feb 1, 2013 at 9:30 AM, Amit Kumar <[email protected]> wrote: > Thanks a lot Joe. It worked. > > One quick question: > I am using Windows 8 and Ruby 1.8.7 > Could you please suggest me which versions of the Ruby, Rubygems and Watir > are best for Windows 8. > I will really appreciate. if you provide me complete package for Watir on > Windows 8. > > > On Fri, Feb 1, 2013 at 7:49 PM, Joe Fleck <[email protected]> wrote: >> >> I would change 'default' to 'new'. >> >> browser = Watir::Browser.new :ff >> >> The above should do it. >> >> Joe >> >> On Fri, Feb 1, 2013 at 9:18 AM, Amit Kumar <[email protected]> wrote: >> > Hi Joe: >> > >> > Thanks for your reply. >> > >> > I installed watir-webdriver-0.6.2. Now I am getting different error: >> > >> > hello.rb:3: undefined method `default=' for Watir::Browser:Class >> > (NoMethodError) >> > >> > And my code looks like: >> > >> > require 'rubygems' >> > >> > require 'watir-webdriver' >> > browser = Watir::Browser.default = "firefox" >> > browser = Watir::Browser.start "URL" >> > >> > browser.form(:id, "signin").text_field(:id, "username").set("username") >> > browser.form(:id, "signin").text_field(:id, "password").set("Password") >> > browser.form(:id, "signin").button(:value, "Sign In").click >> > >> > >> > >> > >> > On Fri, Feb 1, 2013 at 7:35 PM, Joe Fleck <[email protected]> wrote: >> >> >> >> Hi Amit, >> >> >> >> When driving Firefox you need to use watir-webdriver not watir. >> >> >> >> These are the two line I changed. >> >> require 'watir-webdriver' >> >> browser = Watir::Browser.default = "firefox" >> >> >> >> >> >> >> >> On Fri, Feb 1, 2013 at 8:52 AM, Amit Kumar <[email protected]> >> >> wrote: >> >> > Dear All: >> >> > >> >> > Hope you all are doing great. Please help on following error. >> >> > >> >> > I am getting error while executing script. I am using Windows 8 and >> >> > Ruby187. >> >> > >> >> > Code: >> >> > require 'rubygems' >> >> > require 'Watir' >> >> > Watir::Browser.default = "firefox" >> >> > browser = Watir::Browser.start "website url" >> >> > browser.form(:id, "signin").text_field(:id, >> >> > "username").set("username") >> >> > browser.form(:id, "signin").text_field(:id, >> >> > "password").set("password") >> >> > browser.form(:id, "signin").button(:value, "Sign In").click >> >> > >> >> > Error: >> >> > E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in >> >> > `gem_original_require': no such file to load -- watir/loader >> >> > (LoadError) >> >> > from >> >> > E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in >> >> > `require' >> >> > from >> >> > E:/Ruby187/lib/ruby/gems/1.8/gems/commonwatir-4.0.0/lib/Watir.rb:1 >> >> > from >> >> > E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in >> >> > `gem_original_require' >> >> > from >> >> > E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in >> >> > `require' >> >> > from hello.rb:2 >> >> > >> >> > -- >> >> > Thanks and Regards, >> >> > Amit >> >> > >> >> > -- >> >> > -- >> >> > 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. >> >> > >> >> > >> >> >> >> -- >> >> -- >> >> 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. >> >> >> >> >> > >> > >> > >> > -- >> > Thanks and Regards, >> > Amit >> > >> > -- >> > -- >> > 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. >> > >> > >> >> -- >> -- >> 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. >> >> > > > > -- > Thanks and Regards, > Amit > > -- > -- > 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. > > -- -- 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.
