I'm running Selenium 4.0.0-beta1 on MSVC 2019 using C#.
I'm using MicrosoftDriver version 17.17134.0.
Whenever I use Selenium to perform automated browsing, the browsing history is not saved after the session. I would like to keep a persistent browsing history state.
I got some answers from, Save and load browser history for selenium.
But I'm not sure how to replicate the Java solution for Firefox in C# for Microsoft Edge.
In particular, I couldn't find the equivalent profile object to import or create a profile for the browser history.
var edgedriverservice = EdgeDriverService.CreateDefaultService();
var edgeoptions = new EdgeOptions();
var driver = new EdgeDriver(edgedriverservice, edgeoptions);
I have setup my new driver object in the following manner, I'm not sure how the profile object fits in from the previous link.