Selenium Not Installing 06-23-2019, 01:07 PM
#1
Ok so I'm trying to install Selenium onto a C# project. I've Installed the Selenium.WebDriver Nugget Package , then Installed Selenium.Webdriver.chromedriver . I ran the following code just to investigate :
I get errors :
Then get 2 more errors exactly the same but instead of IWebDriver it says ChromeDriver and IWebElement.
I've tried uninstalling and reinstalling the packages multiple times , no change. I then uninstalled Selenium.WebDriver.Chromedriver and instead installed Selenium.Chrome.WebDriver , no luck there either.
Code:
// Create a driver instance for chromedriver
IWebDriver driver = new ChromeDriver();
//Navigate to google page
driver.Navigate().GoToUrl("http:www.google.com");
//Maximize the window
driver.Manage().Window.Maximize();
//Find the Search text box using xpath
IWebElement element = driver.FindElement(By.XPath("//*[@title='Search']"));
//Enter some text in search text box
element.SendKeys("learn-automation");
//Close the browser
driver.Close();I get errors :
Code:
"The type or namespace name 'IWebDriver' could not be found (are you missing a using directive or an assembly reference?)Then get 2 more errors exactly the same but instead of IWebDriver it says ChromeDriver and IWebElement.
I've tried uninstalling and reinstalling the packages multiple times , no change. I then uninstalled Selenium.WebDriver.Chromedriver and instead installed Selenium.Chrome.WebDriver , no luck there either.
Discord : Whiteey#3760
Justeat vouchers sold! Msg me!




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)