<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Someone working on hooking up Watir and Firefox</title>
	<atom:link href="http://www.daveliebreich.com/blog/?feed=rss2&#038;p=70" rel="self" type="application/rss+xml" />
	<link>http://www.daveliebreich.com/blog/?p=70</link>
	<description>We&#039;re not cows, we&#039;re aardvarks</description>
	<lastBuildDate>Mon, 09 Feb 2009 09:10:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Kapil Mohan &#187; Web Application Testing in Ruby - from Barcamp Delhi</title>
		<link>http://www.daveliebreich.com/blog/?p=70&#038;cpage=1#comment-44</link>
		<dc:creator>Kapil Mohan &#187; Web Application Testing in Ruby - from Barcamp Delhi</dc:creator>
		<pubDate>Mon, 06 Mar 2006 20:52:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.daveliebreich.com/blog/?p=70#comment-44</guid>
		<description>&lt;p&gt;[...] Angrez has written Ruby scripts which enable this thing to drive FireFox. Great! He is using JSSh to control FireFox from Ruby. Here and here are more discussions about this. [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] Angrez has written Ruby scripts which enable this thing to drive FireFox. Great! He is using JSSh to control FireFox from Ruby. Here and here are more discussions about this. [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: mixedpuppy</title>
		<link>http://www.daveliebreich.com/blog/?p=70&#038;cpage=1#comment-43</link>
		<dc:creator>mixedpuppy</dc:creator>
		<pubDate>Thu, 16 Feb 2006 23:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.daveliebreich.com/blog/?p=70#comment-43</guid>
		<description>&lt;p&gt;using dom events you can do the key events just fine with the exception that in some ui elements they will not work, such as:&lt;/p&gt;

&lt;p&gt;win32 and osx file dialogs
plugins that use real os events&lt;/p&gt;

&lt;p&gt;also, I have not tested anything like IME with this yet, which uses the text event (see below).  The other problem is knowing what the target element is.  Watir may not be able to use this at all.  The best solution would be sending real events, but that is a bit more work to cover all platforms, and would be mozilla specific.&lt;/p&gt;

&lt;p&gt;(hope the pre tag works here)&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;keyEvent = function(target, evt)
{
    if (!target)
      return;
    var event = target.ownerDocument.createEvent(&quot;KeyEvents&quot;);
    event.initKeyEvent(evt.type, evt.bubbles, evt.cancelable,
                       target.ownerDocument.defaultView, evt.ctrlKey, evt.altKey, evt.shiftKey,
                       evt.metaKey, evt.keyCode, evt.charCode);
    target.dispatchEvent(event);
}
&lt;/code&gt;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>using dom events you can do the key events just fine with the exception that in some ui elements they will not work, such as:</p>

<p>win32 and osx file dialogs
plugins that use real os events</p>

<p>also, I have not tested anything like IME with this yet, which uses the text event (see below).  The other problem is knowing what the target element is.  Watir may not be able to use this at all.  The best solution would be sending real events, but that is a bit more work to cover all platforms, and would be mozilla specific.</p>

<p>(hope the pre tag works here)</p>

<pre><code>keyEvent = function(target, evt)
{
    if (!target)
      return;
    var event = target.ownerDocument.createEvent("KeyEvents");
    event.initKeyEvent(evt.type, evt.bubbles, evt.cancelable,
                       target.ownerDocument.defaultView, evt.ctrlKey, evt.altKey, evt.shiftKey,
                       evt.metaKey, evt.keyCode, evt.charCode);
    target.dispatchEvent(event);
}
</code></pre>]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->