web browser embeded into winForms application

Apr 17, 2011 at 4:28 PM

Hello!

I'm a begginer at white. Please help me to cope with a problem :)

I need to test interaction between browser built into a main form (into panel, actually ) and other from's controls (buttons, menus etc.).

In built-in browser it is needed to perform some operations also.

Maybe someone knows, how I can get the WebBrowser control from the main form and perform operations within it?

panel.Get<InternetExplorerWindow>(criteria) doesn't work :(

Apr 18, 2011 at 7:41 AM

try 

panel.Get<System.Windows.Forms.WebBrowser>(criteria)

Apr 18, 2011 at 6:16 PM

Unfortunately, it didn't help.

It says:

 The type 'System.Windows.Forms.WebBrowser' cannot be used as type parameter 'T' in the generic type or method 'White.Core.UIItems.UIItemContainer.Get<T>(string)'. There is no implicit reference conversion from 'System.Windows.Forms.WebBrowser' to 'White.Core.UIItems.UIItem'.