how to close a child browser in c# or WatiN?

Posted by user177060 on Stack Overflow See other posts from Stack Overflow or by user177060
Published on 2010-03-30T05:29:11Z Indexed on 2010/03/30 5:33 UTC
Read the original article Hit count: 211

Filed under:
|

I want to close the child window which is of "Browser" type. Have a look at the below code.

WatiN.Core.Browser openBrowser = BrowserType.getBrowserObject().attachChildBrowser(document_name + Constants.open_document_title);

I want to close the "openBrowser". Close()(available in WatiN) can only be used for the type "IE" of "Firefox" only. So, I cant use Close() method also. Is there any method to close the browser in C# or WatiN?

© Stack Overflow or respective owner

Related posts about watin

Related posts about c#