I'm using Watin like so:
private IE myie;
private void button1_Click(object sender, EventArgs e)
{
try
{
myie = new IE();
}
catch (Exception ex)
{
return;
}
myie.GoTo("http://www.google.com");
myie.WaitForComplete();
}
The problem is, however, once browser window is opened - my C# app starts to consume CPU. According to task manager - in IDLE state my program consumes from 7% to 20% CPU power. (I have AMD 2core 5000+)
Once you close the IE instance (window) - CPU usage problem disappears, so the problem lies somewhere within Watin.
Who do I fix it? What causes CPU drain?
Here, proof:
Project: download on skydrive
Can anybody confirm the bug? Or maybe it's just my PC fails at some point