开发者

Detaching a browser from watin

开发者 https://www.devze.com 2022-12-16 08:14 出处:网络
Ok, so I am misusing Watin a bit here, maybe开发者_如何转开发 a better tool exists (please do suggest!).

Ok, so I am misusing Watin a bit here, maybe开发者_如何转开发 a better tool exists (please do suggest!).

Anyway I use Watin to log in to a site, and after that I want it to leave the browser window alone...

So my question is: Is it possible to use Watin to execute some steps and then abandon the browser completely?


The IE class has a property AutoClose. Set this to false after creating an IE instance and your Internet Explorer instance will stay open after your code has run.

HTH, Jeroen

BTW this functionality is currently missing for FireFox. I'll add it for the next release.

0

精彩评论

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