driver.FindElement(By.Id("navHHome")).Click();
driver.FindElement(By.LinkText("Canon")).Click();
driver.FindElement(By.Id("searchBrand")).SendKeys("Canon AP" + Keys.Enter);
driver.FindElement(By.Id("pListSearch")).SendKeys("AP 01" + Keys.Enter);
HTML: Druckerzubehör
<li><a itemprop="url" href="/canon/default.aspx">Canon</a></li>
I am getting an error No SuchElementException was unhandled An unhandled exception of type 'OpenQA.Selenium.NoSuchElementException' occurred in WebDriver.dll
Additional information: Unable to locate element: #searchBrand
Could any one tell me if this is rightly coded?
Thanks