Could not load file or assembly 'WebDriver, Version=3.9.1.0. (Exception from HRESULT: 0x80131044)

0

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);
        }
selenium
selenium-chromedriver
asked on Stack Overflow Mar 21, 2019 by Jay • edited Mar 21, 2019 by Nazim Kerimbekov

1 Answer

0

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/

answered on Stack Overflow Mar 21, 2019 by (unknown user) • edited Mar 21, 2019 by (unknown user)

User contributions licensed under CC BY-SA 3.0