开发者

Watin login without seeing the page

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜