<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>just_add_watir &#124; Advanced recipes for Watir &#187; .send_keys</title>
	<atom:link href="http://justaddwatir.com/tag/send_keys/feed/" rel="self" type="application/rss+xml" />
	<link>http://justaddwatir.com</link>
	<description>Advanced recipes for Watir</description>
	<lastBuildDate>Wed, 21 Oct 2009 02:44:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Q. How do I simulate a user pressing other keys?</title>
		<link>http://justaddwatir.com/2008/q-how-do-i-simulate-a-user-pressing-other-keys/</link>
		<comments>http://justaddwatir.com/2008/q-how-do-i-simulate-a-user-pressing-other-keys/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 08:48:30 +0000</pubDate>
		<dc:creator>admin</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 ...
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>
			<content:encoded><![CDATA[<p><strong>A. Use the .send_keys method ...</strong><br />
A complete list of send_keys combinations is available <a href="http://www.autoitscript.com/autoit3/docs/appendix/SendKeys.htm">here</a>.<br />
Example watir:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#0066ff; font-weight:bold;">@b</span>.<span style="color:#9900CC;">goto</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;http://www.google.com&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#0066ff; font-weight:bold;">@b</span>.<span style="color:#9900CC;">text_field</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:name</span>, <span style="color:#996600;">'q'</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">set</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'foobar'</span><span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#0066ff; font-weight:bold;">@b</span>.<span style="color:#9900CC;">send_keys</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;{TAB}&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#0066ff; font-weight:bold;">@b</span>.<span style="color:#9900CC;">send_keys</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;{TAB}&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#0066ff; font-weight:bold;">@b</span>.<span style="color:#9900CC;">send_keys</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;+{TAB}&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#0066ff; font-weight:bold;">@b</span>.<span style="color:#9900CC;">send_keys</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;{SPACE}&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://justaddwatir.com/2008/q-how-do-i-simulate-a-user-pressing-other-keys/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Q. How do I simulate a user pressing &#039;Enter&#039;?</title>
		<link>http://justaddwatir.com/2008/q-how-do-i-simulate-a-user-pressing-enter/</link>
		<comments>http://justaddwatir.com/2008/q-how-do-i-simulate-a-user-pressing-enter/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 07:27:02 +0000</pubDate>
		<dc:creator>admin</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 ...
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>
			<content:encoded><![CDATA[<p><strong>A. Use the send_keys method ...</strong><br />
Example watir:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#0066ff; font-weight:bold;">@b</span>.<span style="color:#9900CC;">goto</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;http://www.google.com&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#0066ff; font-weight:bold;">@b</span>.<span style="color:#9900CC;">text_field</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:name</span>, <span style="color:#996600;">'q'</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">set</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'foobar'</span><span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#0066ff; font-weight:bold;">@b</span>.<span style="color:#9900CC;">send_keys</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;{ENTER}&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://justaddwatir.com/2008/q-how-do-i-simulate-a-user-pressing-enter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
