The following is the snippet of WebDriver code using Java:
WebDriver driver = new FirefoxDriver(); driver.get(\"http://www.google.pl/\");
The XPath Used is Incorrect Here Directly Id is there so no need to use XPath.
driver.findElement(By.id("gbqfq")).sendKeys("xyz");