Hi
I have below code and i want _driver to be public variable
IWebDriver _driver = new ChromeDriver();
static void Main(string[] args) { IWebDriver _driver = new ChromeDriver(); _driver.Navigate().GoToUrl("google.com"); _driver.FindElement(By.Name("q")).SendKeys("Learn Automation"); }
Thanks