Recently, I came across a situation in which I have to automate some scenario on private browsing mode of Internet Explorer (known as InPrivate Browsing). Although browser was getting identified in that mode, browser methods (like navigate,refresh etc) were not working (not throwing any error). After some searching, I came to know that in InPrivate Browsing Mode, all the extensions and add-ins are disabled due to which BHOManager Class Add-In is also disabled.
To enable browser methods in InPrivate mode of Internet Explorer, we need to enable add-ins. To do that, follow the below steps:
- Go to Tools > Internet Options and click on Privacy tab.
- Under the InPrivate section, uncheck the option that says ‘Disable toolbars and extensions when InPrivate Browsing starts’.
- Click on OK button and start InPrivate session.
Categories: Awesum Stuff