<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>just_add_watir</title>
	<atom:link href="http://justaddwatir.com/watir/feed/" rel="self" type="application/rss+xml" />
	<link>http://justaddwatir.com/watir</link>
	<description>an ocean of examples for web application testing in ruby</description>
	<pubDate>Wed, 15 Oct 2008 11:21:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Q. How do I integrate watir with TestLink?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-integrate-watir-with-testlink/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-integrate-watir-with-testlink/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 11:11:19 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[firewatir]]></category>

		<category><![CDATA[watir]]></category>

		<category><![CDATA[testlink]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=51</guid>
		<description><![CDATA[A. This requires several hacks and use of the developer API &#8230;

The first step to integrating these products is to download and install
TestLink 1.8.0 BETA2
Once finished, add the TestLink API BETA
Their blog has installation instructions for both.
Regarding the API there are a number of changes you will need to ensure:
1. create api_developer_keys table using the [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-integrate-watir-with-testlink/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I install watir standalone?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-install-watir-standalone/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-install-watir-standalone/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 02:47:08 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[installation]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=50</guid>
		<description><![CDATA[A previous post highlights some ways in which you can install watir from behind a proxy server via the command line.
This approach can be problematic when using authenticated proxy servers. The following file is a simple MSI which will install Watir 1.5.6 with its required dependencies. The pre-requisites for this MSI are:
1. Ruby 1.8.6 installed [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-install-watir-standalone/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I use ci_reporter in my Test::Unit scripts?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-use-ci_reporter-in-my-testunit-scripts/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-use-ci_reporter-in-my-testunit-scripts/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 10:28:22 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[ci_reporter]]></category>

		<category><![CDATA[Test::Unit]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=49</guid>
		<description><![CDATA[A. Use a ci_reporter gem &#8230;
To install the ci_reporter gem on windows:

gem install ci_reporter

If you&#8217;re using Test::Unit, ensure the ci/reporter/rake/test_unit_loader.rb file is loaded before the test is run. If you&#8217;re using RSpec, you‘ll need to pass the following arguments to the spec command:

 --require GEM_PATH/lib/ci/reporter/rake/rspec_loader
 --format CI::Reporter::RSpec

You may also want to set the output directory [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-use-ci_reporter-in-my-testunit-scripts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I pass command line arguments to Test::Unit?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-pass-command-line-arguments-to-testunit/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-pass-command-line-arguments-to-testunit/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 09:45:56 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[Test::Unit]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=48</guid>
		<description><![CDATA[A. Use the &#8212; argument to stop processing Test::Unit specific arguments &#8230;
Module Test::Unit has its own command line arguments as specified by the following:

~/just_add_watir $&#62;ruby test_suite.rb --help
Test::Unit automatic runner.
Usage: test/unit/graph_test.rb [options] [-- untouched arguments]
&#160;
    -r, --runner=RUNNER              Use the given [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-pass-command-line-arguments-to-testunit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I execute arbitrary javascript?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-execute-arbitrary-javascript/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-execute-arbitrary-javascript/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 09:31:44 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.goto]]></category>

		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=47</guid>
		<description><![CDATA[A. Use the .goto method to call the javascript &#8230;
Example html:

&#60;HTML lang=&#34;en-US&#34; xmlns=&#34;http://www.w3.org/1999/xhtml&#34; xml:lang=&#34;en-US&#34;&#62;
  &#60;BODY scroll=&#34;no&#34;&#62;
    &#60;script type=&#34;text/javascript&#34; charset=&#34;utf-8&#34;&#62;
      function openWin(i){
         alert(i);
      }
    &#60;/script&#62;
    &#60;DIV id=&#34;menuLayer1&#34;&#62;
  [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-execute-arbitrary-javascript/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I learn all the objects on a page? [firewatir]</title>
		<link>http://justaddwatir.com/watir/how-do-i-learn-all-the-objects-on-a-page-firewatir/</link>
		<comments>http://justaddwatir.com/watir/how-do-i-learn-all-the-objects-on-a-page-firewatir/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 21:45:02 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[firewatir]]></category>

		<category><![CDATA[attributes]]></category>

		<category><![CDATA[methods]]></category>

		<category><![CDATA[objects]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=46</guid>
		<description><![CDATA[Sometimes you might wish to implement a QTP-like &#8216;object repository&#8217;. I&#8217;ve had most success implementing this via Ruby modules.
To &#8216;learn&#8217; all the objects on a page using firewatir you can use a simple script like this:

require 'rubygems'
require 'firewatir'
&#160;
class NilClass
  def length
    0
  end
end
&#160;
class DiscoverObjects
  include FireWatir
&#160;
  def initialize&#40;url&#41;
 [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/how-do-i-learn-all-the-objects-on-a-page-firewatir/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I enter the current date or time into a textfield?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-enter-the-current-date-or-time-into-a-textfield/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-enter-the-current-date-or-time-into-a-textfield/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 17:19:00 +0000</pubDate>
		<dc:creator>Sameh Abdelhamid</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[date]]></category>

		<category><![CDATA[time]]></category>

		<category><![CDATA[Time.now]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=45</guid>
		<description><![CDATA[A. Use the Time.now method &#8230;
Example html:

&#60;html&#62;
   &#60;body&#62;
      &#60;form method=&#34;post&#34; action=&#34;&#34;&#62;
         &#60;textarea name=&#34;comments&#34; cols=&#34;40&#34; rows=&#34;1&#34;&#62;
            Enter your comments here...
         &#60;/textarea&#62;&#60;br&#62;
  [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-enter-the-current-date-or-time-into-a-textfield/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I get the text displayed in a javascript popup?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-get-the-text-displayed-in-a-javascript-popup/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-get-the-text-displayed-in-a-javascript-popup/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 13:04:31 +0000</pubDate>
		<dc:creator>Sameh Abdelhamid</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.ControlGetText]]></category>

		<category><![CDATA[autoit]]></category>

		<category><![CDATA[popup]]></category>

		<category><![CDATA[win32OLE]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=44</guid>
		<description><![CDATA[A. Use the WIN32OLE extension library with the autoit function library &#8230;
You will need to install autoit. You can download it here, once installed you can call the function library using the win32OLE extension library.
Example html:

&#60;html&#62;
   &#60;head&#62;
   &#60;script language=&#34;javascript&#34;&#62;
      function msgbox (textstring) {
    [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-get-the-text-displayed-in-a-javascript-popup/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I attach to a current IE session?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-attach-to-a-current-ie-session/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-attach-to-a-current-ie-session/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 12:53:53 +0000</pubDate>
		<dc:creator>Sameh Abdelhamid</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.attach]]></category>

		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=43</guid>
		<description><![CDATA[A. Use the .attach method&#8230;
Example watir:

@b=Watir::IE.attach&#40;:title,//&#41;

I have used regex here for the window title, you can be more specific if you like.
]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-attach-to-a-current-ie-session/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I deal with javascript popup&#8217;s?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-deal-with-javascript-popups/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-deal-with-javascript-popups/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 10:34:41 +0000</pubDate>
		<dc:creator>Sameh Abdelhamid</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.click_no_wait]]></category>

		<category><![CDATA[autoit]]></category>

		<category><![CDATA[javascript]]></category>

		<category><![CDATA[popup]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=42</guid>
		<description><![CDATA[A. Invoke the autoit function library with the .click_no_wait method&#8230;
You will need to install autoit. You can download it here, once installed you can call the function library using the win32OLE extension library.
Example html:

&#60;html&#62;
   &#60;head&#62;
   &#60;script language=&#34;javascript&#34;&#62;
      function msgbox (textstring) {
      [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-deal-with-javascript-popups/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How do I get the URL in IE?</title>
		<link>http://justaddwatir.com/watir/how-do-i-get-the-url-in-ie/</link>
		<comments>http://justaddwatir.com/watir/how-do-i-get-the-url-in-ie/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 07:02:10 +0000</pubDate>
		<dc:creator>Sameh Abdelhamid</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[autoit]]></category>

		<category><![CDATA[url]]></category>

		<category><![CDATA[win32OLE]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=41</guid>
		<description><![CDATA[A. Use the autoit function library with the win32OLE extension library&#8230;
You will need to install autoit. You can download it here, once installed you can call the function library using the win32OLE extension library.

require 'watir'
require 'rubygems'
require 'win32ole'
autoit = WIN32OLE.new&#40;'AutoItX3.Control'&#41; 
url = autoit.ControlGetText&#40;&#34;[CLASS:IEFrame]&#34;, &#34;&#34;, &#34;Edit1&#34;&#41;
puts &#34;url is &#34; + url

The defintion for the autoit function &#8216;ControlGetText&#8217; [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/how-do-i-get-the-url-in-ie/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I set a checkbox with a dynamic id attribute?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-set-a-checkbox-with-a-dynamic-id-attribute/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-set-a-checkbox-with-a-dynamic-id-attribute/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 03:59:10 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.checkbox]]></category>

		<category><![CDATA[.gsub]]></category>

		<category><![CDATA[.html]]></category>

		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=40</guid>
		<description><![CDATA[A. Use a regex match  to populate a dynamic variable &#8230;
Example html:

&#60;form action=&#34;test_0019.html&#34; method=&#34;get&#34; accept-charset=&#34;utf-8&#34;&#62;
&#60;input id=&#34;cblRoles_3&#34; type=&#34;checkbox&#34; tabindex=&#34;47&#34; name=&#34;cblRoles:3&#34;/&#62;
&#60;label for=&#34;cblRoles_3&#34;&#62;Customer&#60;/label&#62; 
&#60;input id=&#34;cblRoles_4&#34; type=&#34;checkbox&#34; tabindex=&#34;48&#34; name=&#34;cblRoles:4&#34;/&#62;
&#60;label for=&#34;cblRoles_4&#34;&#62;Expedite&#60;/label&#62;

Example watir:

dynamic_id = @b.html&#91;/cblRoles_\d+&#62;Expedite/&#93;.gsub&#40;&#34;&#62;Expedite&#34;,&#34;&#34;&#41;
@b.checkbox&#40;:id,dynamic_id&#41;.set

]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-set-a-checkbox-with-a-dynamic-id-attribute/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I get to element X in frame Y?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-get-to-element-x-in-frame-y/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-get-to-element-x-in-frame-y/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 10:26:32 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.frame]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=39</guid>
		<description><![CDATA[A. Make sure you prefix your element with the correct frame reference &#8230;
Example watir:

@b.goto&#40;'http://justaddwatir.com/watir/test_html/tc_0001_0100/test_0017.html'&#41;
@b.frame&#40;:index, 2&#41;.button&#40;:name, &#34;submit&#34;&#41;.click

Note: sometimes frames aren&#8217;t easily identified with id or name attributes, the example above uses the index attribute to get to the second frame in the frameset.
]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-get-to-element-x-in-frame-y/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How can extract information from script headers?</title>
		<link>http://justaddwatir.com/watir/q-how-can-extract-information-from-script-headers/</link>
		<comments>http://justaddwatir.com/watir/q-how-can-extract-information-from-script-headers/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 08:51:57 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.getElementsByTagName]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=38</guid>
		<description><![CDATA[A. Use the getElementsByTagName method and iterate through results &#8230;
Example html:

&#60;title&#62;test_0016&#60;/title&#62;
&#60;meta name=&#34;generator&#34; content=&#34;TextMate http://macromates.com/&#34;&#62;
&#60;meta name=&#34;author&#34; content=&#34;koops&#34;&#62;
&#60;!-- Date: 2008-08-12 --&#62;
&#60;script type=&#34;text/javascript&#34;&#62;var PAGE_TID =&#34;cache;app05.qa.sfo1:8101;2008-08-07T18:38:30Z;0001&#34;;
&#60;/script&#62;

Example watir:

@b.goto&#40;'http://justaddwatir.com/watir/test_html/tc_0001_0100/test_0016.html'&#41;
s=&#91;&#93; 
scripts = @b.document.body.parentElement.getElementsByTagName&#40;&#34;script&#34;&#41; 
scripts.each do &#124;script_tag&#124; 
  script_tag.invoke&#40;&#34;innerHTML&#34;&#41;.each do &#124;script&#124; 
    if script.match&#40;/var PAGE_TID/&#41; 
      puts script
    end 
  [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-can-extract-information-from-script-headers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I simulate a user pressing other keys?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-simulate-a-user-pressing-other-keys/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-simulate-a-user-pressing-other-keys/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 08:48:30 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.send_keys]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=37</guid>
		<description><![CDATA[A. Use the .send_keys method &#8230;
A complete list of send_keys combinations is available here.
Example watir:

@b.goto&#40;&#34;http://www.google.com&#34;&#41;
@b.text_field&#40;:name, 'q'&#41;.set&#40;'foobar'&#41;
@b.send_keys&#40;&#34;{TAB}&#34;&#41;
@b.send_keys&#40;&#34;{TAB}&#34;&#41;
@b.send_keys&#40;&#34;+{TAB}&#34;&#41;
@b.send_keys&#40;&#34;{SPACE}&#34;&#41;

]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-simulate-a-user-pressing-other-keys/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I simulate a user pressing &#8216;Enter&#8217;?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-simulate-a-user-pressing-enter/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-simulate-a-user-pressing-enter/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 07:27:02 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.send_keys]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=36</guid>
		<description><![CDATA[A. Use the send_keys method &#8230;
Example watir:

@b.goto&#40;&#34;http://www.google.com&#34;&#41;
@b.text_field&#40;:name, 'q'&#41;.set&#40;'foobar'&#41;
@b.send_keys&#40;&#34;{ENTER}&#34;&#41;

]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-simulate-a-user-pressing-enter/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. Which method do I use with which element?</title>
		<link>http://justaddwatir.com/watir/q-which-method-do-i-use-with-which-element/</link>
		<comments>http://justaddwatir.com/watir/q-which-method-do-i-use-with-which-element/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 14:30:50 +0000</pubDate>
		<dc:creator>Sameh Abdelhamid</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[element]]></category>

		<category><![CDATA[method]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=35</guid>
		<description><![CDATA[


button
&#60;input&#62; tags with type=button, submit, image or reset


radio
&#60;input&#62; tags with the type=radio; known as radio buttons


check_box
&#60;input&#62; tags with type=checkbox


text_field
&#60;input&#62; tags with the type=text (single-line), type=textarea (multi-line), and type=password


hidden
&#60;input&#62; tags with type=hidden


select_list
&#60;select&#62; tags, known as drop-downs or drop-down lists


label
&#60;label&#62; tags (including &#8220;for&#8221; attribute)


span
&#60;span&#62; tags


div
&#60;div&#62; tags


p
&#60;p&#62; (paragraph) tags


link
&#60;a&#62; (anchor) tags


table
&#60;table&#62; tags, including row and cell methods for [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-which-method-do-i-use-with-which-element/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I click a radio button?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-click-a-radio-button/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-click-a-radio-button/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 14:03:28 +0000</pubDate>
		<dc:creator>Sameh Abdelhamid</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.radio]]></category>

		<category><![CDATA[.set]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=34</guid>
		<description><![CDATA[A. Use the .radio in conjunction with .set
Example html:

&#60;html&#62;
   &#60;body&#62;
      &#60;input type=&#34;radio&#34; name=&#34;group1&#34; value=&#34;Watir&#34;&#62; Watir&#60;br&#62;
  &#60;/body&#62;
&#60;/html&#62;

Example watir:

@b.radio&#40;:name,&#34;group1&#34;&#41;.set

]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-click-a-radio-button/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I check/uncheck a checkbox?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-checkuncheck-a-checkbox/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-checkuncheck-a-checkbox/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 14:00:07 +0000</pubDate>
		<dc:creator>Sameh Abdelhamid</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.checkbox]]></category>

		<category><![CDATA[.set]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=33</guid>
		<description><![CDATA[A. Use a the .checkbox in conjunction with .set(true/false)
Example html:

&#60;form&#62;
   &#60;input name=&#34;checkbox&#34; type=&#34;checkbox&#34; /&#62;I love just_add_watir !
&#60;/form&#62;

Example watir to activate:

@b.checkbox&#40;:name, &#34;checkbox&#34;&#41;.set&#40;true&#41;

Example watir to deactivate:

@b.checkbox&#40;:name, &#34;checkbox&#34;&#41;.set&#40;false&#41;

]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-checkuncheck-a-checkbox/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I enter text in a text box?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-enter-text-in-a-text-box/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-enter-text-in-a-text-box/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 13:55:05 +0000</pubDate>
		<dc:creator>Sameh Abdelhamid</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.set]]></category>

		<category><![CDATA[.text_field]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=32</guid>
		<description><![CDATA[A. Use the text_field in conjunction with the .set command
Example html:

&#60;html&#62;
    &#60;body&#62;
      &#60;form method=&#34;post&#34; action=&#34;&#34;&#62;
         &#60;textarea name=&#34;comments&#34; cols=&#34;20&#34; rows=&#34;1&#34;&#62;
            Enter your comments here...
      [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-enter-text-in-a-text-box/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I gem install Watir behind a proxy server?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-gem-install-watir-behind-a-proxy-server/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-gem-install-watir-behind-a-proxy-server/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 11:12:04 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=20</guid>
		<description><![CDATA[A. Set an environment variable for your proxy from the command line &#8230;

set HTTP_PROXY=http://my.work.proxy:8080
gem install watir

]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-gem-install-watir-behind-a-proxy-server/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I require all ruby files in the current directory?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-require-all-ruby-files-in-the-current-directory/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-require-all-ruby-files-in-the-current-directory/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 11:08:38 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.dirname]]></category>

		<category><![CDATA[File]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=19</guid>
		<description><![CDATA[A. Iterate over the directory using the File class &#8230;
Example watir:

dir = File.dirname&#40;__FILE__&#41;
 Dir&#91;File.expand_path&#40;&#34;#{dir}/*.rb&#34;&#41;&#93;.uniq.each do &#124;file&#124;
  require file
 end

]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-require-all-ruby-files-in-the-current-directory/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I close all other browsers except my current process?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-close-all-other-browsers-except-my-current-process/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-close-all-other-browsers-except-my-current-process/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 11:04:21 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.close_others]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=18</guid>
		<description><![CDATA[A. Use .close_others method &#8230;
Example watir:

@b.close_others

]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-close-all-other-browsers-except-my-current-process/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I detect if Internet Explorer is already running inside a watir script?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-detect-if-internet-explorer-is-already-running-inside-a-watir-script/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-detect-if-internet-explorer-is-already-running-inside-a-watir-script/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 10:48:17 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[%x[]]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=17</guid>
		<description><![CDATA[A. Use %x{} to run a sub process that calls tasklist.exe &#8230;
Example watir:

if %x&#91;tasklist /FI &#34;IMAGENAME eq IEXPLORE.EXE&#34; /NH&#93; =~ /IEXPLORE/ then
  puts &#34;browser IS running&#34;
else
  puts &#34;no browsers running&#34;
end

]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-detect-if-internet-explorer-is-already-running-inside-a-watir-script/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I find the selected element in a combo box?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-find-the-selected-element-in-a-combo-box/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-find-the-selected-element-in-a-combo-box/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 16:08:22 +0000</pubDate>
		<dc:creator>Sameh Abdelhamid</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.getSelectedItems]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=16</guid>
		<description><![CDATA[A. Use the select_list comand in conjunction with the getSelectedItems command 
Example html:

&#60;select name=&#34;watirCombo&#34;&#62;
     &#60;option value=&#34;0&#34; selected&#62;(please select:)&#60;/option&#62;
     &#60;option value=&#34;1&#34;&#62;Option 1&#60;/option&#62;
     &#60;option value=&#34;2&#34;&#62;Option 2&#60;/option&#62;
     &#60;option value=&#34;3&#34;&#62;Option 3&#60;/option&#62;
     &#60;option value=&#34;other&#34;&#62;Other&#60;/option&#62;
&#60;/select&#62;

Example watir:

 @b.goto&#40;'http://justaddwatir.com/watir/test_html/tc_0001_0100/test_0021.html'&#41;
 combo_items = @b.select_list&#40;:name, &#34;watirCombo&#34;&#41;.getSelectedItems
 [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-find-the-selected-element-in-a-combo-box/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I scroll the Internet Explorer page down?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-scroll-the-internet-explorer-page-down/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-scroll-the-internet-explorer-page-down/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 14:59:33 +0000</pubDate>
		<dc:creator>Sameh Abdelhamid</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.scrollintoview]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=15</guid>
		<description><![CDATA[A. Use the document.scrollintoview command.
Example html:

&#60;p&#62; 
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod  incidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis  ostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis  utem vel eum iriure [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-scroll-the-internet-explorer-page-down/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I add a generic script timeout?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-add-a-generic-script-timeout/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-add-a-generic-script-timeout/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 22:15:15 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[Timeout]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=14</guid>
		<description><![CDATA[A. Use the Timeout class &#8230;
Example watir:

Timeout::timeout&#40;10&#41;do
  begin
      @b.goto&#40;url&#41;
  rescue Timeout::Error
      puts 'Page took longer than 10 seconds to load'
  end
end

]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-add-a-generic-script-timeout/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. What&#8217;s with the /i in Ruby regular expressions?</title>
		<link>http://justaddwatir.com/watir/q-whats-with-the-i-in-ruby-regular-expressions/</link>
		<comments>http://justaddwatir.com/watir/q-whats-with-the-i-in-ruby-regular-expressions/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 11:04:20 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=13</guid>
		<description><![CDATA[A. the /i indicates an ignore case modifier &#8230; 
In Ruby, a regular expression is written in the form of /pattern/modifiers where &#8220;pattern&#8221; is the regular expression itself, and &#8220;modifiers&#8221; are a series of characters indicating various options.
Ruby supports the following modifiers:
    * /i makes the regex match case insensitive.
   [...]]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-whats-with-the-i-in-ruby-regular-expressions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I display the inner text of a DIV tag?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-display-the-inner-text-of-a-div-tag/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-display-the-inner-text-of-a-div-tag/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 11:00:28 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[.innerText]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=12</guid>
		<description><![CDATA[A. Use the .innerText method &#8230;
Example html:

&#60;div class=&#34;UserServiceValues&#34;&#62;
  Apples  
&#60;/div&#62;
&#60;div class=&#34;UserServiceValues&#34;&#62;
  Oranges 
&#60;/div&#62;
&#60;div class=&#34;UserServiceValues&#34;&#62;
  Bananas
&#60;/div&#62;

Example watir:

@b.elements_by_xpath&#40;&#34;//div[@class='UserServiceValues']&#34;&#41;.each  do &#124;elem&#124;
  puts elem.innerText
end

]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-display-the-inner-text-of-a-div-tag/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q. How do I terminate a browser using a pid?</title>
		<link>http://justaddwatir.com/watir/q-how-do-i-terminate-a-browser-using-a-pid/</link>
		<comments>http://justaddwatir.com/watir/q-how-do-i-terminate-a-browser-using-a-pid/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 09:47:15 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
		
		<category><![CDATA[watir]]></category>

		<category><![CDATA[Win32API]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=11</guid>
		<description><![CDATA[A. Get a window handle and close the pid using the Win32API &#8230;
Example watir:

hWnd &#124;&#124;= Watir::IE::Process.process_id_from_hwnd @b.hwnd
pid=&#34; &#34; * 32
thread=Win32API.new&#40;&#34;user32&#34;, &#34;GetWindowThreadProcessId&#34;, 'IP', 'I'&#41;.Call&#40;hWnd,pid&#41;
puts pid.unpack&#40;&#34;L&#34;&#41;&#91;0&#93;    
right_to_terminate_process = 1
handle = Win32API.new&#40;'kernel32.dll', 'OpenProcess', 'lil', 'l'&#41;.
call&#40;right_to_terminate_process, 0, hWnd&#41;
Win32API.new&#40;'kernel32.dll', 'TerminateProcess', 'll', 'l'&#41;.call&#40;handle, 0&#41;

]]></description>
		<wfw:commentRss>http://justaddwatir.com/watir/q-how-do-i-terminate-a-browser-using-a-pid/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 2.624 seconds -->
