To the best of my knowledge you cannot set user agent via code for Internet Explorer. You might have to use a proxy server such as fiddler or browser mob proxy to do this.
I write test on Selenium using c#, I need test in Internet Explorer browser.
Is it possible setup useragent in web driver?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/862d8b4e-4cae-48c6-9532-deea8bbd4ac3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.