Fiddler Core -Powershell- Web browser Control

2 posts, 0 answers
  1. Mohammed
    Mohammed avatar
    1 posts
    Member since:
    Apr 2014

    Posted 09 Apr 2014 Link to this post

    Hello,
    we are trying to automate web browser control through powershell and we are using FiddlerCore to get the time statistics. Basically trying to get the total time taken by a website to finish loading.  

    We call start-Fiddler to use it as proxy and then create a browser control.
    Now we Navigate to page and then call $output = Receive-Fiddler.

    Now there seems to be a problem with output returned through this command "Receive-Fiddler". It basically returns an array of requests made and the time statistics [ ClientConnected , ClientDoneResponse ]. often I see the ClientConnected , ClientDoneResponse is coming as Null. Again this is intermittent but can happen atleast  5-6 times in 10 tries. its easily reproducible.
     ($result[0].Timers.ClientConnected )


    has someone reported this behavior? is there an better approach than what we are doing?

    thanks for your help
  2. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 09 Apr 2014 Link to this post

    Hello, Mohammed--

    I'm not sure I understand your scenario-- is there some reason you're using PowerShell for this task rather than a program written in C# or VB.NET directly? If you build such a program, you can integrate FiddlerCore directly into it and then use the URLMon class in FiddlerCore to set the proxy for just that application rather than collecting traffic from everything on the system.

    I don't know what "Receive-Fiddler" is-- that sounds like a function in some code you've written. Unfortunately, without its source or any notion of how it was written I can't really speculate about what's wrong with that code.

    Can you share the code you've written? If you don't want to do so publicly, simply use the "Send Feedback" item in Fiddler's Help menu.

    Regards,
    Eric Lawrence
    Telerik
     

    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.

     
Back to Top