开发者

Watin login without seeing the page

开发者 https://www.devze.com 2023-03-30 10:51 出处:网络
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 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

精彩评论

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