Wasin.T
Wasin.T

Reputation: 11

Watin works in background

I started using WaTin as web automation tools. My target is let WaTin run their tasks, when success (such as complete sign-in) it will show the results in textbox and datagrid. My question is does WaTin can work in the background? (Not open IE every time).

Thank you.

Upvotes: 1

Views: 168

Answers (1)

ProgrammerV5
ProgrammerV5

Reputation: 1962

You can hide the IE interface but it depends on the particular site you are working with. Most of the things can be done in the background but there are cases were you need to have the UI visible to calculate coordinates (like when you need to press a button inside a Flash movie) But to answer your specific question, yes Watin can work in the background. Take a look at the following method:

browser.ShowWindow(WatiN.Core.Native.Windows.NativeMethods.WindowShowStyle.Hide);

browser is the Watin object.

Upvotes: 1

Related Questions