<?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: Watir&#8217;s @browser.url returning the previous page&#8217;s url</title>
	<atom:link href="http://www.natontesting.com/2009/09/21/watirs-browser-url-returning-the-previous-pages-url/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.natontesting.com/2009/09/21/watirs-browser-url-returning-the-previous-pages-url/</link>
	<description>nathaniel ritmeyer&#039;s thoughts on automated software testing</description>
	<lastBuildDate>Thu, 19 Jan 2012 15:37:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tanin</title>
		<link>http://www.natontesting.com/2009/09/21/watirs-browser-url-returning-the-previous-pages-url/comment-page-1/#comment-816</link>
		<dc:creator>Tanin</dc:creator>
		<pubDate>Tue, 06 Sep 2011 19:20:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.natontesting.com/?p=474#comment-816</guid>
		<description>I have tried it.

my_current_url = @browser.execute_script(&quot;document.location.toString();&quot;)

It does not work. You&#039;ll need to add &#039;return&#039;

my_current_url = @browser.js_eval(&quot;return document.location.toString();&quot;)

And it works :D</description>
		<content:encoded><![CDATA[<p>I have tried it.</p>
<p>my_current_url = @browser.execute_script(&#8220;document.location.toString();&#8221;)</p>
<p>It does not work. You&#8217;ll need to add &#8216;return&#8217;</p>
<p>my_current_url = @browser.js_eval(&#8220;return document.location.toString();&#8221;)</p>
<p>And it works <img src='http://www.natontesting.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nat</title>
		<link>http://www.natontesting.com/2009/09/21/watirs-browser-url-returning-the-previous-pages-url/comment-page-1/#comment-285</link>
		<dc:creator>Nat</dc:creator>
		<pubDate>Fri, 26 Feb 2010 17:37:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.natontesting.com/?p=474#comment-285</guid>
		<description>I should have mentioned this... js_eval is the method for firewatir; execute_script is the watir equivalent. Sorry!</description>
		<content:encoded><![CDATA[<p>I should have mentioned this&#8230; js_eval is the method for firewatir; execute_script is the watir equivalent. Sorry!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pals</title>
		<link>http://www.natontesting.com/2009/09/21/watirs-browser-url-returning-the-previous-pages-url/comment-page-1/#comment-284</link>
		<dc:creator>pals</dc:creator>
		<pubDate>Fri, 26 Feb 2010 12:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.natontesting.com/?p=474#comment-284</guid>
		<description>Hi There,
Did execute this, but am getting the foll error:

undefined method `js_eval&#039; for # (NoMethodError)

For watir 1.6.5 and IE7 on windows Vista

Is there any library that i need to require before calling javascript functions?

Regards,
Pals</description>
		<content:encoded><![CDATA[<p>Hi There,<br />
Did execute this, but am getting the foll error:</p>
<p>undefined method `js_eval&#8217; for # (NoMethodError)</p>
<p>For watir 1.6.5 and IE7 on windows Vista</p>
<p>Is there any library that i need to require before calling javascript functions?</p>
<p>Regards,<br />
Pals</p>
]]></content:encoded>
	</item>
</channel>
</rss>

