I want to do a automatic login开发者_开发问答 on a web without seeing the page (it have to be transparent for the user). All have to by using c#.
I thought that maybe with watin i can do it. I can login into a web seeing it, but i wonder if i could do it without seeing it.
Any ideas?
Thanks
You can hide the IE window with:
Settings.Instance.MakeNewIeInstanceVisible = false;
ie = new IE(true);
OR
ie = new IE(true);
ie.ShowWindow(NativeMethods.WindowShowStyle.Hide);
.
You can minimize the IE window with:
ie = new IE(true);
ie.ShowWindow(NativeMethods.WindowShowStyle.Minimize);
精彩评论