<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
	>
<channel>
	<title>Comments on: Tests and How-To Documents</title>
	<atom:link href="http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/feed/" rel="self" type="application/rss+xml" />
	<link>http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/</link>
	<description>Test like you do not need the money.</description>
	<lastBuildDate>Mon, 06 Sep 2010 15:26:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Pavel</title>
		<link>http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/comment-page-1/#comment-9324</link>
		<dc:creator>Pavel</dc:creator>
		<pubDate>Thu, 10 Apr 2008 21:12:34 +0000</pubDate>
		<guid isPermaLink="false">http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/#comment-9324</guid>
		<description>have to admit very usefull comments. thank you, Željko!</description>
		<content:encoded><![CDATA[<p>have to admit very usefull comments. thank you, Željko!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Željko Filipin&#8217;s Blog on Software Testing &#187; Tests and How-To Documents (2)</title>
		<link>http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/comment-page-1/#comment-4987</link>
		<dc:creator>Željko Filipin&#8217;s Blog on Software Testing &#187; Tests and How-To Documents (2)</dc:creator>
		<pubDate>Fri, 12 Oct 2007 13:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/#comment-4987</guid>
		<description>[...] I have already written about Tests and How-To Documents. [...]</description>
		<content:encoded><![CDATA[<p>[...] I have already written about Tests and How-To Documents. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Željko Filipin</title>
		<link>http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/comment-page-1/#comment-2408</link>
		<dc:creator>Željko Filipin</dc:creator>
		<pubDate>Fri, 18 May 2007 08:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/#comment-2408</guid>
		<description>Anonymous,

Of course it is possible. It is Ruby feature, not Watir, but you probably do not care. :)

# put page text to variable &lt;strong&gt;t&lt;/strong&gt;
t = ie.text
=&gt; &quot;customer text customer&quot;

# the counter
i=0
=&gt; 0

# increase &lt;strong&gt;i&lt;/strong&gt; when you find &quot;customer&quot;
t.gsub(&quot;customer&quot;) {i+=1}
=&gt; &quot;1 text 2&quot;

# It works!
i
=&gt; 2

If you post this question at &lt;a href=&quot;http://forums.openqa.org/forum.jspa?forumID=5&quot; rel=&quot;nofollow&quot;&gt;Watir forum&lt;/a&gt; somebody may have a better solution.</description>
		<content:encoded><![CDATA[<p>Anonymous,</p>
<p>Of course it is possible. It is Ruby feature, not Watir, but you probably do not care. <img src='http://zeljkofilipin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p># put page text to variable <strong>t</strong><br />
t = ie.text<br />
=> &#8220;customer text customer&#8221;</p>
<p># the counter<br />
i=0<br />
=> 0</p>
<p># increase <strong>i</strong> when you find &#8220;customer&#8221;<br />
t.gsub(&#8220;customer&#8221;) {i+=1}<br />
=> &#8220;1 text 2&#8243;</p>
<p># It works!<br />
i<br />
=> 2</p>
<p>If you post this question at <a href="http://forums.openqa.org/forum.jspa?forumID=5" rel="nofollow">Watir forum</a> somebody may have a better solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/comment-page-1/#comment-2407</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 18 May 2007 07:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/#comment-2407</guid>
		<description>Hi Željko,

Is it possible to do a text search using watir code?

For ex: I have a website. I want to search for a particular word &quot;customer&quot; in that page and if possible the no of occurances of that word.

If it is possible, can u guide me how to do that?</description>
		<content:encoded><![CDATA[<p>Hi Željko,</p>
<p>Is it possible to do a text search using watir code?</p>
<p>For ex: I have a website. I want to search for a particular word &#8220;customer&#8221; in that page and if possible the no of occurances of that word.</p>
<p>If it is possible, can u guide me how to do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claudio Perrone</title>
		<link>http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/comment-page-1/#comment-1028</link>
		<dc:creator>Claudio Perrone</dc:creator>
		<pubDate>Mon, 19 Mar 2007 22:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/#comment-1028</guid>
		<description>Hi Željko,
FYI, to click that link 5 times you may consider ditching the for loop and using the more elegant:
5.times do
  ie.link(:text, &quot;text&quot;).click
end</description>
		<content:encoded><![CDATA[<p>Hi Željko,<br />
FYI, to click that link 5 times you may consider ditching the for loop and using the more elegant:<br />
5.times do<br />
  ie.link(:text, &#8220;text&#8221;).click<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Željko Filipin</title>
		<link>http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/comment-page-1/#comment-202</link>
		<dc:creator>Željko Filipin</dc:creator>
		<pubDate>Thu, 01 Feb 2007 08:23:15 +0000</pubDate>
		<guid isPermaLink="false">http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/#comment-202</guid>
		<description>Anonymous,

I am not sure if I understood your question. You do not have to require any other file (except watir.rb, of course) to use ie.refresh.</description>
		<content:encoded><![CDATA[<p>Anonymous,</p>
<p>I am not sure if I understood your question. You do not have to require any other file (except watir.rb, of course) to use ie.refresh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/comment-page-1/#comment-201</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 01 Feb 2007 07:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/#comment-201</guid>
		<description>Filipin,

To use ie.refresh(), do we include any package as such?

If so, could you tell the package with a sample code?</description>
		<content:encoded><![CDATA[<p>Filipin,</p>
<p>To use ie.refresh(), do we include any package as such?</p>
<p>If so, could you tell the package with a sample code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Željko Filipin</title>
		<link>http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/comment-page-1/#comment-190</link>
		<dc:creator>Željko Filipin</dc:creator>
		<pubDate>Tue, 23 Jan 2007 12:38:13 +0000</pubDate>
		<guid isPermaLink="false">http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/#comment-190</guid>
		<description>If you have a page that has a link that points to itself, like this

&lt;a href=&quot;page.htm&quot;&gt;text&lt;/a&gt;

you can click that link five time with this

require &#039;watir&#039;
ie = Watir::IE.start(&quot;app.com&quot;)
n = 5
for i in 1..n
  ie.link(:text, &quot;text&quot;).click
end</description>
		<content:encoded><![CDATA[<p>If you have a page that has a link that points to itself, like this</p>
<p>&lt;a href=&#8221;page.htm&#8221;&gt;text&lt;/a&gt;</p>
<p>you can click that link five time with this</p>
<p>require &#8216;watir&#8217;<br />
ie = Watir::IE.start(&#8220;app.com&#8221;)<br />
n = 5<br />
for i in 1..n<br />
  ie.link(:text, &#8220;text&#8221;).click<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Željko Filipin</title>
		<link>http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/comment-page-1/#comment-188</link>
		<dc:creator>Željko Filipin</dc:creator>
		<pubDate>Tue, 23 Jan 2007 12:27:20 +0000</pubDate>
		<guid isPermaLink="false">http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/#comment-188</guid>
		<description>I do not want to discourage anybody from posting comments, but Watir related questions will probably get answered quicker at Watir mailing list (http://rubyforge.org/mailman/listinfo/wtr-general or http://forums.openqa.org/forum.jspa?forumID=5). I am monitoring that list, and I will answer your question there if I know the answer.

That said, to answer your question (in the next comment). :)</description>
		<content:encoded><![CDATA[<p>I do not want to discourage anybody from posting comments, but Watir related questions will probably get answered quicker at Watir mailing list (<a href="http://rubyforge.org/mailman/listinfo/wtr-general" rel="nofollow">http://rubyforge.org/mailman/listinfo/wtr-general</a> or <a href="http://forums.openqa.org/forum.jspa?forumID=5)" rel="nofollow">http://forums.openqa.org/forum.jspa?forumID=5)</a>. I am monitoring that list, and I will answer your question there if I know the answer.</p>
<p>That said, to answer your question (in the next comment). <img src='http://zeljkofilipin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/comment-page-1/#comment-187</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 23 Jan 2007 11:04:53 +0000</pubDate>
		<guid isPermaLink="false">http://zeljkofilipin.com/2006/11/10/tests-and-how-to-documents/#comment-187</guid>
		<description>Is it possible to make a Watir code repeat the same task n number of times?

For ex. repeat opening a website and click on a link n number of times.

If so, how?</description>
		<content:encoded><![CDATA[<p>Is it possible to make a Watir code repeat the same task n number of times?</p>
<p>For ex. repeat opening a website and click on a link n number of times.</p>
<p>If so, how?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
