<?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: Using HttpWatch with WatiN</title>
	<atom:link href="http://blog.httpwatch.com/2008/10/30/using-httpwatch-with-watin/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.httpwatch.com/2008/10/30/using-httpwatch-with-watin/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-httpwatch-with-watin</link>
	<description>News, articles and all things HttpWatch</description>
	<lastBuildDate>Fri, 03 Feb 2012 21:31:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Abhishek Gupta</title>
		<link>http://blog.httpwatch.com/2008/10/30/using-httpwatch-with-watin/comment-page-1/#comment-52635</link>
		<dc:creator>Abhishek Gupta</dc:creator>
		<pubDate>Fri, 04 Nov 2011 08:04:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.httpwatch.com/?p=216#comment-52635</guid>
		<description>I think when you add HTTPwatch as a reference you will also get a reference of SHDocvw so remove the refrence Interop.ShDocvw from your project. Worked in my case :)

Thanks
Abhishek</description>
		<content:encoded><![CDATA[<p>I think when you add HTTPwatch as a reference you will also get a reference of SHDocvw so remove the refrence Interop.ShDocvw from your project. Worked in my case :)</p>
<p>Thanks<br />
Abhishek</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dm3281</title>
		<link>http://blog.httpwatch.com/2008/10/30/using-httpwatch-with-watin/comment-page-1/#comment-42807</link>
		<dc:creator>dm3281</dc:creator>
		<pubDate>Sun, 24 Jul 2011 11:59:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.httpwatch.com/?p=216#comment-42807</guid>
		<description>I&#039;m getting the following error using

HttpWatch.Plugin plugin = ct.IE.Attach((IEBrowser)ie.NativeBrowser).WebBrowser;


Error	1	The type or namespace name &#039;ieBrowser&#039; could not be found (are you missing a using directive or an assembly reference?)	C:\Users\myuser\Documents\Visual Studio 2010\Projects\WaitimHttpWatch\WaitimHttpWatch\Program.cs	42	55	WaitimHttpWatch

I&#039;m using Watin 2.1 and the latest HTTPWatch 7.x

This code doesn&#039;t compile:

using System;
using System.Collections.Generic;
using System.Text;
using WatiN.Core;

namespace WatiN
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            // Open a new Internet Explorer window and
            // goto the google website.
            IE ie = new IE(&quot;http://www.google.com&quot;);

            // Attach HttpWatch to this new instance of IE
            HttpWatch.Controller ct = new HttpWatch.Controller();

            // the below line was supposedly for Watin 1.3
            //HttpWatch.Plugin plugin = ct.IE.Attach((SHDocVw.IWebBrowser2)ie.InternetExplorer);

            // the below line is for Watin 2.x
            HttpWatch.Plugin plugin = ct.IE.Attach((IEBrowser)ie.NativeBrowser).WebBrowser;

            // Start recording a log file in HttpWatch
            plugin.Record();

            // Find the search text field and type Watin in it.
            ie.TextField(Find.ByName(&quot;q&quot;)).TypeText(&quot;WatiN&quot;);

            // Click the Google search button.
            ie.Button(Find.ByValue(&quot;Google Search&quot;)).Click();
            ie.WaitForComplete();

            // Stop recording and save an HttpWatch log file
            plugin.Stop();
            plugin.Log.Save(@&quot;c:\mydir\googlesearch.hwl&quot;);

            HttpWatch.Summary logSummary = plugin.Log.Entries.Summary;

            Console.WriteLine(&quot;\r\nElapsed time (secs) = &quot; + logSummary.Time.ToString() +
                              &quot; Downloaded bytes = &quot; + logSummary.BytesReceived.ToString());

            // Uncomment the following line if you want to close
            // Internet Explorer and the console window immediately.
            //ie.Close();
        }
    }
}</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting the following error using</p>
<p>HttpWatch.Plugin plugin = ct.IE.Attach((IEBrowser)ie.NativeBrowser).WebBrowser;</p>
<p>Error	1	The type or namespace name &#8216;ieBrowser&#8217; could not be found (are you missing a using directive or an assembly reference?)	C:\Users\myuser\Documents\Visual Studio 2010\Projects\WaitimHttpWatch\WaitimHttpWatch\Program.cs	42	55	WaitimHttpWatch</p>
<p>I&#8217;m using Watin 2.1 and the latest HTTPWatch 7.x</p>
<p>This code doesn&#8217;t compile:</p>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
using WatiN.Core;</p>
<p>namespace WatiN<br />
{<br />
    class Program<br />
    {<br />
        [STAThread]<br />
        static void Main(string[] args)<br />
        {<br />
            // Open a new Internet Explorer window and<br />
            // goto the google website.<br />
            IE ie = new IE(&#8220;http://www.google.com&#8221;);</p>
<p>            // Attach HttpWatch to this new instance of IE<br />
            HttpWatch.Controller ct = new HttpWatch.Controller();</p>
<p>            // the below line was supposedly for Watin 1.3<br />
            //HttpWatch.Plugin plugin = ct.IE.Attach((SHDocVw.IWebBrowser2)ie.InternetExplorer);</p>
<p>            // the below line is for Watin 2.x<br />
            HttpWatch.Plugin plugin = ct.IE.Attach((IEBrowser)ie.NativeBrowser).WebBrowser;</p>
<p>            // Start recording a log file in HttpWatch<br />
            plugin.Record();</p>
<p>            // Find the search text field and type Watin in it.<br />
            ie.TextField(Find.ByName(&#8220;q&#8221;)).TypeText(&#8220;WatiN&#8221;);</p>
<p>            // Click the Google search button.<br />
            ie.Button(Find.ByValue(&#8220;Google Search&#8221;)).Click();<br />
            ie.WaitForComplete();</p>
<p>            // Stop recording and save an HttpWatch log file<br />
            plugin.Stop();<br />
            plugin.Log.Save(@&#8221;c:\mydir\googlesearch.hwl&#8221;);</p>
<p>            HttpWatch.Summary logSummary = plugin.Log.Entries.Summary;</p>
<p>            Console.WriteLine(&#8220;\r\nElapsed time (secs) = &#8221; + logSummary.Time.ToString() +<br />
                              &#8221; Downloaded bytes = &#8221; + logSummary.BytesReceived.ToString());</p>
<p>            // Uncomment the following line if you want to close<br />
            // Internet Explorer and the console window immediately.<br />
            //ie.Close();<br />
        }<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://blog.httpwatch.com/2008/10/30/using-httpwatch-with-watin/comment-page-1/#comment-41819</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Sat, 09 Jul 2011 17:55:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.httpwatch.com/?p=216#comment-41819</guid>
		<description>Hi!

Don&#039;t work with watin 2.0

HttpWatch.Plugin plugin = ct.IE.Attach((IEBrowser)ie.NativeBrowser).WebBrowser;

Help Me, Please! :(</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Don&#8217;t work with watin 2.0</p>
<p>HttpWatch.Plugin plugin = ct.IE.Attach((IEBrowser)ie.NativeBrowser).WebBrowser;</p>
<p>Help Me, Please! :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeroen van Menen</title>
		<link>http://blog.httpwatch.com/2008/10/30/using-httpwatch-with-watin/comment-page-1/#comment-18101</link>
		<dc:creator>Jeroen van Menen</dc:creator>
		<pubDate>Sun, 06 Jun 2010 14:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.httpwatch.com/?p=216#comment-18101</guid>
		<description>Hi,

Changes needed to make this work with WatiN 2.0:

HttpWatch.Plugin plugin = ct.IE.Attach((IEBrowser)ie.NativeBrowser).WebBrowser;

Regards,
Jeroen van Menen
Lead Dev WatiN</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Changes needed to make this work with WatiN 2.0:</p>
<p>HttpWatch.Plugin plugin = ct.IE.Attach((IEBrowser)ie.NativeBrowser).WebBrowser;</p>
<p>Regards,<br />
Jeroen van Menen<br />
Lead Dev WatiN</p>
]]></content:encoded>
	</item>
</channel>
</rss>

