预期行为 -
geckodriver 应该能够使用自定义配置文件启动 Firefox48
重现步骤 -
01: Zip default profile folder
02: Getting default profile location
string prof = (@"...\AppData\Roaming\Mozilla\Firefox\Profiles\6uqm9vnl.default.zip");
03: Converting to base64-encoded string
var prof1 = System.Text.Encoding.UTF8.GetBytes(prof);
var prof2 = System.Convert.ToBase64String(prof1);
FirefoxProfile profile = new FirefoxProfile(prof2);
04: Initializing FirefoxDriver
new FirefoxDriver(profile);
实际行为 -
geckodriver 仍然推出新的配置文件