I wish to use the browsermob-proxy tool to insert custom request headers during the coded SDK (C#) tests.
tl;dr - I cannot figure out how to configure the TestProject SDK WebDriver
to use a proxy. I need a code example.
I can see from examples online how this is possible to do with Selenium drivers directly. I also found it documented in this article and examples in the browsermob-proxy docs.
And it should be possible in TestProject too; I see it alluded to in this other TestProject Forum thread.
But in all the C# SDK code samples I don’t see anyone creating a driver instance with options; I only see something like this:
public ExecutionResult Execute(IOSTestHelper helper)
{
// Get driver initialized by TestProject Agent
// No need to specify browser type, it can be done later via UI
var driver = helper.Driver;
In these cases, Driver
is already a ready-made instance. How do I create a new one with proxy capability?