![test automation codejock controls test automation codejock controls](https://d585tldpucybw.cloudfront.net/sfimages/default-source/teststudio/runtime_graphic_01.png)
So if you have IE 11 installed that's used, if IE 10 is installed that's used. In this case IE=edge uses the current version of IE that is installed on the machine. Note the header should be the first header so that the engine is applied before any other headers are processed.
#Test automation codejock controls full#
Inside of a full document it looks like this: The tag to use in the header looks like this: By adding a meta tag to the head of the HTML document rendered in the Web Browser Control you can effectively override the IE Rendering engine and specify which version of IE (or the latest version) to use. If you control the content in your Web Browser control by rendering the HTML pages you display yourself, the easiest way to provide later versions of the IE rendering engine is by using the IE Edge mode header. If you’re building an application that intends to use the Web Browser control for a live preview of some HTML this is clearly undesirable. But the default IE 7 mode doesn't recognize many of these settings resulting in a terrible render mode. behave differently by default, even though there’s a CSS reset applied on this page.
![test automation codejock controls test automation codejock controls](https://www.ranorex.com/rx-media/graphics/real_devices/book-desktop.png)
Not only are the new CSS features missing but the page also renders in Internet Explorer’s quirks mode so all the margins, padding etc. Obviously the latter rendering using the Web Browser control in a WPF application is a bit lacking. The the full Internet Explorer the page displays the HTML correctly – you see the rounded corners and shadow displayed. One uses Internet Explorer as a standalone browser, and one uses a simple WPF form that includes the Web Browser control. To see what I’m talking about, here are two screen shots rendering an HTML5 page that includes some CSS3 functionality – rounded corners and border shadows - from an earlier post.
![test automation codejock controls test automation codejock controls](https://www.inflectra.com/GraphicsViewer.aspx?url=Rapise/Highlights/what-is-automated-software-testing.xml&name=wordml://03000007.png)
Whether you're just rendering document content, or you're interacting with rich interactive content, HTML happens to be one of the most common document formats to display or interact with and it makes a wonderful addition to conventional forms based UI. For example Markdown Monster, Help Builder and WebSurge rely heavily on the Web Browser Control to render their document centric or even rich interactive UI (in the case of Markdown Monster which hosts an HTML editor). I use the Internet Explorer Web Browser Control in a lot of my desktop applications to display document content. Updated Aug 26th, 2016 - the original was published in May 2011