Fiddler4 not working with selenium(chrome web driver)

3 posts, 0 answers
  1. Avinash
    Avinash avatar
    10 posts
    Member since:
    Jan 2015

    Posted 10 Mar 2015 Link to this post

    Hi Eric,
         I'm using fiddler4 with selenium(chrome web driver).Fiddler failed to capture traffic of the chrome browser opened by selenium web driver,then i have manually opened chrome browser fiddler successfully captured the traffic.

  2. Eric Lawrence
    Eric Lawrence avatar
    832 posts

    Posted 10 Mar 2015 Link to this post

    You need to configure your Selenium/ChromeDriver instance to proxy its traffic to Fiddler, which runs at

    suggests you use:

     DesiredCapabilities capabilities =;
    .setCapability("chrome.switches", Arrays.asList("--proxy-server="));

     WebDriver driver = new ChromeDriver(capabilities);

    Eric Lawrence

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. Azhar
    Azhar avatar
    3 posts
    Member since:
    Jan 2018

    Posted 08 Mar 2018 in reply to Avinash Link to this post

    Is the problem the same as with Charles Proxy? Charles Proxy doesn't capture traffic to localhost (sometimes) so in theory, changing the "localhost" request to this url is a solution:

    I don't think userdata properties allow a change in Sahi so that it can point to I couldn't find a solution, but all I needed was errors from the console log, so this was my solution: I added this to my chrome flags:
    --enable-logging --log-level=0

    Visit here!

Back to Top