<?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>Altentee » Performance &#38; Test Automation Experts &#187; url</title>
	<atom:link href="http://altentee.com/blogs/tag/url/feed/" rel="self" type="application/rss+xml" />
	<link>http://altentee.com</link>
	<description>Performance and Test Automation Experts</description>
	<lastBuildDate>Fri, 04 Nov 2011 03:17:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>How do I get the URL in IE?</title>
		<link>http://altentee.com/blogs/2008/how-do-i-get-the-url-in-ie/</link>
		<comments>http://altentee.com/blogs/2008/how-do-i-get-the-url-in-ie/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 07:02:10 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
				<category><![CDATA[Altentee]]></category>
		<category><![CDATA[autoit]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[win32OLE]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=41</guid>
		<description><![CDATA[A. Use the autoit function library with the win32OLE extension library&#8230; You will need to install autoit. You can download it here, once installed you can call the function library using the win32OLE extension library. require 'watir' require 'rubygems' require 'win32ole' autoit = WIN32OLE.new&#40;'AutoItX3.Control'&#41; url = autoit.ControlGetText&#40;&#34;[CLASS:IEFrame]&#34;, &#34;&#34;, &#34;Edit1&#34;&#41; puts &#34;url is &#34; + url [...]]]></description>
			<content:encoded><![CDATA[<p><strong>A. Use the autoit function library with the win32OLE extension library&#8230;</strong><br />
You will need to install autoit. You can download it <a href=http://www.autoitscript.com/autoit3/>here</a>, once installed you can call the function library using the win32OLE extension library.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'watir'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'rubygems'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'win32ole'</span>
autoit = WIN32OLE.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'AutoItX3.Control'</span><span style="color:#006600; font-weight:bold;">&#41;</span>
url = autoit.<span style="color:#9900CC;">ControlGetText</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;[CLASS:IEFrame]&quot;</span>, <span style="color:#996600;">&quot;&quot;</span>, <span style="color:#996600;">&quot;Edit1&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;url is &quot;</span> <span style="color:#006600; font-weight:bold;">+</span> url</pre></div></div>

<p>The defintion for the autoit function &#8216;ControlGetText&#8217; is <strong>ControlGetText(title, text, controlId)</strong><br />
You can use the &#8220;AutoIt Window Info&#8221; tool to find the title and controlId, you do not need to use the &#8216;text&#8217; parameter. I find that using the Class instead of the window title a neater and more accurate solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://altentee.com/blogs/2008/how-do-i-get-the-url-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

