Skip to content

Commit

Permalink
Removed firefox profile settings - testing firefox issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
quigamdev committed Jun 3, 2024
1 parent 53cb484 commit afdb673
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using Newtonsoft.Json;
using OpenQA.Selenium.Firefox;
using Riganti.Selenium.Core.Factories;

Expand All @@ -16,7 +18,9 @@ static FirefoxHelpers()

public static FirefoxDriver CreateFirefoxDriver(LocalWebBrowserFactory factory)
{
return new FirefoxDriver(service, GetFirefoxOptions(factory.Options));
var driver = new FirefoxDriver(service, GetFirefoxOptions(factory.Options));
Console.WriteLine("Firefox applies capabilities: " + JsonConvert.SerializeObject(driver.Capabilities));
return driver;
}

public static FirefoxProfile GetFirefoxProfile()
Expand All @@ -30,7 +34,11 @@ public static FirefoxProfile GetFirefoxProfile()

public static FirefoxOptions GetFirefoxOptions(System.Collections.Generic.IDictionary<string, string> _options)
{
var options = new FirefoxOptions { Profile = GetFirefoxProfile() };
var options = new FirefoxOptions
{
// Profile = GetFirefoxProfile()
};

//options.BrowserVersion = _options.TryGet(nameof(options.BrowserVersion));
return options;
}
Expand Down

0 comments on commit afdb673

Please sign in to comment.