<?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>blogging and scraping &#187; leleba</title>
	<atom:link href="http://www.tsnpc.com/author/leleba/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tsnpc.com</link>
	<description></description>
	<lastBuildDate>Tue, 13 Jul 2010 10:27:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>The poor support of the firewatir 1.6.5 to Chinese characters</title>
		<link>http://www.tsnpc.com/the-poor-support-of-the-firewatir-1-6-5-to-chinese-characters/</link>
		<comments>http://www.tsnpc.com/the-poor-support-of-the-firewatir-1-6-5-to-chinese-characters/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 09:05:41 +0000</pubDate>
		<dc:creator>leleba</dc:creator>
				<category><![CDATA[watir]]></category>
		<category><![CDATA[Chinese characters]]></category>

		<guid isPermaLink="false">http://www.tsnpc.com/the-poor-support-of-the-firewatir-1-6-5-to-chinese-characters/</guid>
		<description><![CDATA[I cannot figure out how to enter the Chinese characters into the textfield of a webpage by firewatir 1.6.5, I tried to change the encoding of the .rb file and the encoding of the firefox browser, but failed. require &#8216;rubygems&#8217; require &#8216;firewatir&#8217; ff = FireWatir::Firefox.new ff.goto &#8220;http://www.google.com&#8220; sleep 1 ff.text_field(:name, &#8216;q&#8217;).set(&#8216;?&#8217;) For Watir 1.6.5, the [...]]]></description>
			<content:encoded><![CDATA[<p>I cannot figure out how to enter the Chinese characters into the textfield of a webpage by firewatir 1.6.5, I tried to change the encoding of the .rb file and the encoding of the firefox browser, but failed.</p>
<p>require &#8216;rubygems&#8217; <br/>require &#8216;firewatir&#8217;</p>
<p>ff = FireWatir::Firefox.new <br/>ff.goto &#8220;<a href="http://www.google.com">http://www.google.com</a>&#8220;</p>
<p>sleep 1 <br/>ff.text_field(:name, &#8216;q&#8217;).set(&#8216;?&#8217;)</p>
<p>For Watir 1.6.5, the Chinese charaters can be supported by replacing the script WIN32OLE.codepage = WIN32OLE::CP_UTF8 with WIN32OLE.codepage = WIN32OLE::CP_ACP in the file of C:\Ruby\lib\ruby\gems\1.8\gems\watir-1.6.5\lib\watir\win32ole.rb <br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tsnpc.com/the-poor-support-of-the-firewatir-1-6-5-to-chinese-characters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check the version of the watir and the firewatir</title>
		<link>http://www.tsnpc.com/check-the-version-of-the-watir-and-the-firewatir/</link>
		<comments>http://www.tsnpc.com/check-the-version-of-the-watir-and-the-firewatir/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 08:35:14 +0000</pubDate>
		<dc:creator>leleba</dc:creator>
				<category><![CDATA[watir]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://www.tsnpc.com/check-the-version-of-the-watir-and-the-firewatir/</guid>
		<description><![CDATA[We can check the version of the watir and firewatir by executing an rb file with the following script: require &#8216;watir&#8217; require &#8216;firewatir&#8217; puts Watir::IE::VERSION puts FireWatir::Firefox::VERSION]]></description>
			<content:encoded><![CDATA[<p>We can check the version of the watir and firewatir by executing an rb file with the following script:</p>
<p>require &#8216;watir&#8217;</p>
<p>require &#8216;firewatir&#8217;</p>
<p>puts Watir::IE::VERSION</p>
<p>puts FireWatir::Firefox::VERSION</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tsnpc.com/check-the-version-of-the-watir-and-the-firewatir/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It is safe require &#8220;rubygems&#8221; in the begining of the watir codes</title>
		<link>http://www.tsnpc.com/it-is-safe-require-rubygems-in-the-begining-of-the-watir-codes/</link>
		<comments>http://www.tsnpc.com/it-is-safe-require-rubygems-in-the-begining-of-the-watir-codes/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 04:39:10 +0000</pubDate>
		<dc:creator>leleba</dc:creator>
				<category><![CDATA[watir]]></category>
		<category><![CDATA[rubygems]]></category>

		<guid isPermaLink="false">http://www.tsnpc.com/it-is-safe-require-rubygems-in-the-begining-of-the-watir-codes/</guid>
		<description><![CDATA[Maybe it is safe to add the code of require &#8216;rubygems&#8217; in the beginning of the watir codes, otherwise, strange results may happen sometimes .]]></description>
			<content:encoded><![CDATA[<p>Maybe it is safe to add the code of require &#8216;rubygems&#8217; in the beginning of the watir codes, otherwise, strange results may happen sometimes .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tsnpc.com/it-is-safe-require-rubygems-in-the-begining-of-the-watir-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

