Search code examples
c#watin

WaTiN issue - WaTin Freezes C# Application


I've just created a Winform in C# that uses WaTiN. The program works fine but whenever it opens new WaTiN browser windows in the background and navigates to a page etc. the application it freezes over and can't be used until WaTiN has finished its processes. Can you please help me to prevent this. Thankyou.


Solution

  • You should use background workers. The behaviour you're experiencing is absolutely normal. You can start reading about the workers here and here.