Hello. I am having a constant error where it says that my FirefoxProfile cannot be converted to FirefoxOptions. This is the exact error code:
"Argument 1: cannot convert from 'OpenQA.Selenium.Firefox.FirefoxProfile' to 'OpenQA.Selenium.Firefox.FirefoxOptions' "
I am using what is essentially Selenium's code snippet for FirefoxProfile, and yet I cannot find a way around this error. I have double-checked, and the WebDriver.dll, Webdriver.Support.dll, the geckodriver, and my Visual Studio are all up to date. I am using the netstandard2.0 versions of WebDriver.dll and Webdriver.Support.dll if it matters. The full code of my project is below, and I have the Selenium.Support and the Selenium.WebDriver NuGet Packages installed as well. I have attached pictures of my references list and also of the properties of both of the .dll files I mentioned. Let me know if you need any more information of me! Thanks!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.Support.UI;
using OpenQA.Selenium;
namespace TestCase_XLRoster
{
class Program
{
static void Main(string[] args)
{
FirefoxProfileManager profManager = new FirefoxProfileManager();
FirefoxProfile profile = profManager.GetProfile("SELENIUM");
IWebDriver driver = new FirefoxDriver(profile);
}
}
}