Search code examples
javascriptc#browserproxyheadless

C#: Headless Browser with Proxy and JavaScript


I am currently using SimpleBrowser.WebDriver, a headless browser, for a project. The browser only needs to be able to run some basic javascript code on a page, I do not want to manipulate the site with jscript or something.

Is there any way to set a proxy for it? If not, can you recommend another solution for a headless browser with javascript and proxy support?

Thanks in advance


Solution

  • PhantomJS will help you here: http://phantomjs.org/ There is a webdriver for it: http://www.tomdupont.net/2013/08/phantomjs-headless-browser-for-net-webdriver.html

    How to setup proxy: Add proxy to PhantomJSDriver (Selenium C#)