<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Installing Ruby on Windows and Setting up Watir on Windows</title>
	<atom:link href="http://scottmotte.com/archives/114/feed" rel="self" type="application/rss+xml" />
	<link>http://scottmotte.com/archives/114</link>
	<description>codes a lot</description>
	<pubDate>Fri, 05 Dec 2008 01:49:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: scott</title>
		<link>http://scottmotte.com/archives/114#comment-175</link>
		<dc:creator>scott</dc:creator>
		<pubDate>Mon, 21 Jul 2008 03:40:12 +0000</pubDate>
		<guid isPermaLink="false">http://scottmotte.com/?p=114#comment-175</guid>
		<description>I used InstantRails. I'm pretty sure it was Rails 2.1.</description>
		<content:encoded><![CDATA[<p>I used InstantRails. I&#8217;m pretty sure it was Rails 2.1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Beard</title>
		<link>http://scottmotte.com/archives/114#comment-173</link>
		<dc:creator>Frank Beard</dc:creator>
		<pubDate>Mon, 21 Jul 2008 01:57:41 +0000</pubDate>
		<guid isPermaLink="false">http://scottmotte.com/?p=114#comment-173</guid>
		<description>How did you install Rails in Windows?  InstantRails, RailsStack, manually???   Did you get Rails 2.1.0 installed or an older version?

Thank you, again, for your insights.</description>
		<content:encoded><![CDATA[<p>How did you install Rails in Windows?  InstantRails, RailsStack, manually???   Did you get Rails 2.1.0 installed or an older version?</p>
<p>Thank you, again, for your insights.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Motte</title>
		<link>http://scottmotte.com/archives/114#comment-172</link>
		<dc:creator>Scott Motte</dc:creator>
		<pubDate>Sun, 20 Jul 2008 05:46:14 +0000</pubDate>
		<guid isPermaLink="false">http://scottmotte.com/?p=114#comment-172</guid>
		<description>hmm. It could be a few things, but my first guess is it might be cygwin. I had a lot of problems with it. I didn't mention it in the post, but I actually ended up uninstalling it and just learning how to use the windows dos commands.

Your script worked great.

Here's what I used adapted from your script on my mac.

require 'rubygems'
require 'safariwatir' # use watir gem

test_site = 'http://www.google.com' # set a variable
ie = Watir::Safari.new # open the IE browser
ie.goto(test_site) # load url, go to site
ie.text_field(:name, "q").set("pickaxe") # load text "pickaxe" into search field named "q"
ie.button(:name, "btnG").click # "btnG" is the name of the Search button, click it

if ie.text.include?("Programming Ruby")
  puts "Test Passed. Found the test string: 'Programming Ruby'."
else
  puts "Test Failed! Could not find: 'Programming Ruby'"
end</description>
		<content:encoded><![CDATA[<p>hmm. It could be a few things, but my first guess is it might be cygwin. I had a lot of problems with it. I didn&#8217;t mention it in the post, but I actually ended up uninstalling it and just learning how to use the windows dos commands.</p>
<p>Your script worked great.</p>
<p>Here&#8217;s what I used adapted from your script on my mac.</p>
<p>require &#8216;rubygems&#8217;<br />
require &#8217;safariwatir&#8217; # use watir gem</p>
<p>test_site = &#8216;http://www.google.com&#8217; # set a variable<br />
ie = Watir::Safari.new # open the IE browser<br />
ie.goto(test_site) # load url, go to site<br />
ie.text_field(:name, &#8220;q&#8221;).set(&#8221;pickaxe&#8221;) # load text &#8220;pickaxe&#8221; into search field named &#8220;q&#8221;<br />
ie.button(:name, &#8220;btnG&#8221;).click # &#8220;btnG&#8221; is the name of the Search button, click it</p>
<p>if ie.text.include?(&#8221;Programming Ruby&#8221;)<br />
  puts &#8220;Test Passed. Found the test string: &#8216;Programming Ruby&#8217;.&#8221;<br />
else<br />
  puts &#8220;Test Failed! Could not find: &#8216;Programming Ruby&#8217;&#8221;<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Beard</title>
		<link>http://scottmotte.com/archives/114#comment-171</link>
		<dc:creator>Frank Beard</dc:creator>
		<pubDate>Sat, 19 Jul 2008 03:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://scottmotte.com/?p=114#comment-171</guid>
		<description>Scott,

Thank you for the mind dump.

It was all good until I tried to test watir.

I ran the following script....

 # Here we see a very simple WATIR script to drive to google  (testgoogle.rb) and validate a page

 require 'rubygems'
 require 'watir'                          # use watir gem
 test_site = 'http://www.google.com'      # set a variable
 ie = Watir::IE.new                       # open the IE browser
 ie.goto(test_site)                       # load url, go to site
 ie.text_field(:name, "q").set("pickaxe") # load text "pickaxe" into search field named "q"
 ie.button(:name, "btnG").click           # "btnG" is the name of the Search button, click it
 
 if ie.text.include?("Programming Ruby")  
   puts "Test Passed. Found the test string: 'Programming Ruby'."
 else
   puts "Test Failed! Could not find: 'Programming Ruby'" 
 end


... and got this error:

$ ruby testgoogle.rb

/usr/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/win32.rb:9:in `initialize': LoadLibrary: \usr\lib\ruby\gems\1.8\gems\wat
ir-1.5.6\watir\IEDialog\Release\IEDialog.dll (RuntimeError)
        from /usr/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/win32.rb:9:in `new'
        from /usr/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/win32.rb:9
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /usr/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir.rb:85
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
        from testw.rb:2


Any ideas on how to fix that?

Thanks!

Frank</description>
		<content:encoded><![CDATA[<p>Scott,</p>
<p>Thank you for the mind dump.</p>
<p>It was all good until I tried to test watir.</p>
<p>I ran the following script&#8230;.</p>
<p> # Here we see a very simple WATIR script to drive to google  (testgoogle.rb) and validate a page</p>
<p> require &#8216;rubygems&#8217;<br />
 require &#8216;watir&#8217;                          # use watir gem<br />
 test_site = &#8216;http://www.google.com&#8217;      # set a variable<br />
 ie = Watir::IE.new                       # open the IE browser<br />
 ie.goto(test_site)                       # load url, go to site<br />
 ie.text_field(:name, &#8220;q&#8221;).set(&#8221;pickaxe&#8221;) # load text &#8220;pickaxe&#8221; into search field named &#8220;q&#8221;<br />
 ie.button(:name, &#8220;btnG&#8221;).click           # &#8220;btnG&#8221; is the name of the Search button, click it</p>
<p> if ie.text.include?(&#8221;Programming Ruby&#8221;)<br />
   puts &#8220;Test Passed. Found the test string: &#8216;Programming Ruby&#8217;.&#8221;<br />
 else<br />
   puts &#8220;Test Failed! Could not find: &#8216;Programming Ruby&#8217;&#8221;<br />
 end</p>
<p>&#8230; and got this error:</p>
<p>$ ruby testgoogle.rb</p>
<p>/usr/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/win32.rb:9:in `initialize&#8217;: LoadLibrary: \usr\lib\ruby\gems\1.8\gems\wat<br />
ir-1.5.6\watir\IEDialog\Release\IEDialog.dll (RuntimeError)<br />
        from /usr/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/win32.rb:9:in `new&#8217;<br />
        from /usr/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/win32.rb:9<br />
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require&#8217;<br />
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require&#8217;<br />
        from /usr/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir.rb:85<br />
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require&#8217;<br />
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require&#8217;<br />
        from testw.rb:2</p>
<p>Any ideas on how to fix that?</p>
<p>Thanks!</p>
<p>Frank</p>
]]></content:encoded>
	</item>
</channel>
</rss>
