Question

I have a Selenium Webdriver test that is working fine before I add it to my test suits namespace, but in the test suit the oSession.fullUrl is blank.

I'm scratching my head for the cause. I've cornered it down, to I'm getting nothing back from the Session.

    FiddlerCoreStartupFlags startupFlags = FiddlerCoreStartupFlags.Default;
    Fiddler.FiddlerApplication.Startup(8080, startupFlags);

    FiddlerApplication.AfterSessionComplete += delegate(Fiddler.Session oSession)
    {
         // Test fiddler not working as this is blank
         Console.WriteLine("Session is working: " + oSession.fullUrl);
    };

Its starting fine: Fiddler has started up: True Fiddler is system proxy: True Fiddler is listening on port 8080

I'm just getting nothing from that session.

I see a compiler warning (but not a complier error) but I cant figure out whats might be conflicting. and it seems to use the fiddlerCord.dll.

1>CSC : warning CS1685: The predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\Test\FiddlerCoreAPI\FiddlerCore.dll'

Was it helpful?

Solution

The warning in question means that you should be using FiddlerCore3 rather than FiddlerCore2 because you're running on the .NET Framework 3.5. It's likely not related to the problem you're having.

I don't know what you mean when you say "this is blank"-- what is "blank"?

Is there a reason that you're waiting until AfterSessionComplete instead of looking at the session in OnBeforeRequest or OnBeforeResponse?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top