I am sorry to ask this question. I have tried checking for a solution on here & through other sources. But, I could not get a solution.
I have also seen a few videos on YouTube. My code looks good. But I get errors on running the code in V/Studio on my PC.
Could it be due to a missing assembly reference ?
Here is the code:
using System;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
namespace Chrome_Driver_Launch
{
class Program
{
static void Main(string[] args)
{
var driver = new ChromeDriver();
driver.navigate().GotoUrl("http://google.com");
}
}
}
And here is the error:
CS0246 The type or namespace name 'OpenQA' could not be found (are you missing a using directive or an assembly reference?)
I also tried opening Firefox, Microsoft Internet Explorer, Microsoft Edge, & Opera from V/Studio & I could not get them to open. I guess it might be due to missing assemblies ?
Thank you.