This is usually managed by PAC scripts. Isn't your company using one?
Anyway, this is definitelly not a task for LeanFT.
You can either delegate to C# in some sense (I'm sure there are some libs out there that help configure proxy), or rely on browser's capabilities.
For example, in Chrome, you can specify at launch:
chrome --proxy-server="http=foopy:80;ftp=foopy2"
.
In LeanFT context, when you launch a browser using BrowserFactory.Launch
, it's launching a browser with no command line parameters, and in current releases there's no way to specify launch arguments, so you'd have to launch manually using C#'s Process.Start
(see How do I start a process from C#? for details)
using System.Diagnostics;
...
Process.Start("process.exe");
And then attach to the process using BrowserFactory.Attach