<?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
<channel>
	<title>blogging and scraping</title>
	<link>http://www.tsnpc.com</link>
	<description></description>
	<lastBuildDate>Mon, 12 Jul 2010 22:54:43 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	<!-- generator="WordPress/3.0" -->

	<item>
		<title>install firewatir on ubuntu 10.04</title>
		<description><![CDATA[I am a newbie with ubuntu, I tried and failed several times to install firewatir on ubuntu 10.04, and finally got following codes by google: sudo su apt-get install build-essential apt-get install ruby rdoc libopenssl-ruby wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz tar zxvf rubygems-1.3.7.tgz cd rubygems-1.3.7 ruby setup.rb ln -s /usr/bin/gem1.8 /usr/local/bin/gem gem install firewatir Frankly I did not [...]]]></description>
		<link>http://www.tsnpc.com/install-firewatir-on-ubuntu-10-04/</link>
			</item>
	<item>
		<title>The poor support of the firewatir 1.6.5 to Chinese characters</title>
		<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>
		<link>http://www.tsnpc.com/the-poor-support-of-the-firewatir-1-6-5-to-chinese-characters/</link>
			</item>
	<item>
		<title>Check the version of the watir and the firewatir</title>
		<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>
		<link>http://www.tsnpc.com/check-the-version-of-the-watir-and-the-firewatir/</link>
			</item>
	<item>
		<title>It is safe require &#8220;rubygems&#8221; in the begining of the watir codes</title>
		<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>
		<link>http://www.tsnpc.com/it-is-safe-require-rubygems-in-the-begining-of-the-watir-codes/</link>
			</item>
	<item>
		<title>the fucntion ie.collect in watir</title>
		<description><![CDATA[Just copy a coding found in the internet for future reference, $ie.divs.collect {&#124;div&#124; if div.class_name == &#8220;data&#8221; puts div.text end }]]></description>
		<link>http://www.tsnpc.com/the-fucntion-ie-collect-in-watir/</link>
			</item>
	<item>
		<title>The fast way to fill a textfield in watir</title>
		<description><![CDATA[It is quite slow to fill a text field by ie.text_field().set(content), the fast way is by ie.text_field().value = content.]]></description>
		<link>http://www.tsnpc.com/the-fast-way-to-fill-a-textfield-in-watir/</link>
			</item>
	<item>
		<title>There is no property of class for iframe in watir</title>
		<description><![CDATA[I encountered an iframe in a webpage which say &#8220;iframe class = &#8220;the_iframe&#8221;, I tried but failed to access the iframe by: ie.frame(:class, &#8220;the_iframe&#8221;) and then I figured out there is no property of class for iframe in watir, and find the iframe by index: ie.frame(:index, 1) we can use ie.show_frames to find how many [...]]]></description>
		<link>http://www.tsnpc.com/there-is-no-property-of-class-for-iframe-in-watir/</link>
			</item>
	<item>
		<title>Be careful to &#8220;include Watir&#8221;</title>
		<description><![CDATA[When we have the &#8220;include Watir&#8221;, then we cannot load another ruby file. I spent more than 1 hour to figure out this.]]></description>
		<link>http://www.tsnpc.com/be-careful-to-include-watir/</link>
			</item>
	<item>
		<title>Multiple ruby files work together</title>
		<description><![CDATA[When writing the first few Ruby programs, there is a tend to place all the code in a single file. But as time passes by and the Ruby programs grow, it is nature that at some point we have to break our code up into logical groupings and place each group in a separate file [...]]]></description>
		<link>http://www.tsnpc.com/multiple-ruby-files-work-together/</link>
			</item>
	<item>
		<title>watir to count the links in a search list on a webpage</title>
		<description><![CDATA[Some times I need to check the amount of the links in a search list, at first I try and failed by: ie.links(:id, /bra bra/).length and then I find a solution by: ie.div(:id, &#8220;searchList&#8221;).links and then by googles, I find a better solution: links_searchlist = ie101.links.find_all { &#124;link&#124; link.class_name == &#8216;permalink&#8217; } puts &#8220;the links [...]]]></description>
		<link>http://www.tsnpc.com/watir-to-count-the-links-in-a-search-list-on-a-webpage/</link>
			</item>
</channel>
</rss>
