This is a migrated thread and some comments may be shown as answers.

Fiddler Core -Powershell- Web browser Control

1 Answer 263 Views
Extensions and Customization
This is a migrated thread and some comments may be shown as answers.
Mohammed
Top achievements
Rank 1
Mohammed asked on 09 Apr 2014, 02:07 PM
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

1 Answer, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 09 Apr 2014, 06:41 PM
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.

 
Tags
Extensions and Customization
Asked by
Mohammed
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Share this question
or