cefsharp - How to Act as Internet Explorer -


i using cefsharp in windows forms application. somehow sites need run on internet explorer only. how can set cefsharp (chromium) act internet explorer?

i changed request headers set user-agent "mozilla/4.0 (compatible; msie 6.0; windows nt 5.0; windows nt 7.0; infopath.3; .net clr 3.1.40767; trident/6.0; en-in)" bu did not solve problem. site still gets browser not ie.

could please provide solution?

thanks further help

i found solution faking site adding missing property/funcs document object in frameloadstart event this.

        private void browser_frameloadstart(object sender, frameloadstarteventargs e)     {         browser.evaluatescriptasync(@"if(!document.all) { document.all = {};}  if(!document.compatmode) { document.compatmode = 'backcompat'} if(!document.getelementsbytagname){ document.getelementsbytagname = function(){}; } ");     } 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -