I have been trying to automate a browser operation via selenium, google.com will be opened, but the text is not searched. The code used is:
IWebDriver driver = new ChromeDriver();
driver.Navigate().GoToUrl("http://www.google.com");
driver.FindElement(By.Id("lst-ib")).SendKeys("Microsoft" + Keys.Enter);
Exception message is:
Unable to locate element:{"method":"id";"selector";"lst-ib"}