How to use $x("//input[@id='searchInput']")
xpath in webdriver as it gives error to complete statement?
import org.openqa.selenium.By;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Locaters {
public static void main(String[] args) {
// TODO Auto-generated method stub
FirefoxDriver driver = new FirefoxDriver();
driver.get("http://www.wikipedia.org/");
//getting error with this xpath,so how can we work with these type of statements
driver.findElement(By.xpath("$x("//input[@id='searchInput']")"));
}