I am creating the object for class ApplicationBrowser which is present in one solution where I am passing one path as a string and it creates an instance of chrome driver. Chromedriver is the API present in the . When I do this I'm experiencing the following exception:
Could not load file or assembly 'WebDriver, Version=3.9.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
My Code:
ApplicationBrowser webApp = new ApplicationBrowser(path);
public ApplicationBrowser(string driverLocation)
{
ChromeOptions options = new ChromeOptions();
Wb = new ChromeDriver(driverLocation, options);
}
Looks like you are not declaring a WebDriver:
WebDriver wb = new ChromeDriver(options);
Missing the WebDriver in front of wb
Also, make sure you have the right WebDriver: https://www.seleniumhq.org/download/
User contributions licensed under CC BY-SA 3.0